Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [rust]

Rust is a language designed for writing highly reliable and fast software in a simple way. It can be used from high-level code down to hardware-specific code, and from big irons to tiny devices.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Building a Solidity parser in Rust, hitting an `expression can not fail` and `recursion` error

I am building a Solidity parser with Rust. I am using the Pest Parser crate and am setting up my grammar.pest file to be very similar to the Solidity repo's Lexer/Parser. I am hitting two errors. The ...
user avatar
0 votes
1 answer
7 views

Want to import data from firebase realtime database to smart contract writen on solana blockchain

I am making a token on Solana blockchain and want to give the token to certain uses for that I need data from my firebase Realtime database. I am little bit confuse How to get my data on smart ...
user avatar
0 votes
2 answers
30 views

Is it possible to to deploy a smart-contract written in Solidity, on Solana?

Hope you all are doing great, I code in Solidity and now I have this requirement to convert Solidity code into Rust for Solana. While figuring out a way I came across with Solang. I'm looking for ...
user avatar
0 votes
1 answer
54 views

Security of Solidity versus Rust

I recently started learning Solidity, and I am interested in security aspects. Today, I encountered a very interesting blog article discussing security vulnerability in Rust. At my level of ...
user avatar
  • 3
1 vote
1 answer
22 views

How would I make my chain "Metamask compatible"

I'm currently working on a rust blockchain project and we are weeks until minimal test net, we have CLI wallet and network will support EVM on the real test net. We have rpc api and I would like to ...
user avatar
  • 108
0 votes
0 answers
27 views

Where does Rust lie in the Web3 Space?

Have being thinking for some time now and I think rust is a low-level language, I guess stuff like a crypto wallet would need an innovative technology. I'm looking to apply my Rust skills in the web3 ...
user avatar
0 votes
0 answers
73 views

Major differences between ethers-js and ethers-rs

I haven't used ethers-rs before, are there any extra features there compared to ethers-js. Learning rust is not an issue here, I'm pretty comfortable with both javascript and rust.
user avatar
  • 21
0 votes
0 answers
40 views

how to fix programCommand(...).argument is not a function in candy-machine-cli of metaplex

ts-node js/packages/cli/src/candy-machine-cli.ts upload ./assets --env devnet --keypair ~/.config/solana/devnet-test.json /home/kalanig/project/metaplex/js/packages/cli/src/candy-machine-cli.ts:58 ....
user avatar
0 votes
1 answer
63 views

ERROR Cannot read properties of undefined (reading 'dots')

Error while running npx @substrate/playground-cli
user avatar
0 votes
1 answer
109 views

error[E0282]: type annotations needed

While I was building a subsrate node using cargo build I got this error message. [ How to solve this??
user avatar
0 votes
1 answer
100 views

How o start code in Solana contract? [closed]

Hello guys try to code in Solana contract, but didnt know how to start it. Will be happy to any advise how to start :)) Thank u :) May be exist some video course in youtube or something like crypto ...
user avatar
4 votes
0 answers
52 views

What is an EVM externality?

While reading the OpenEthereum codebase, I encountered this type: /// Externalities interface for EVMs pub trait Ext { /// Returns the storage value for a given key if reversion happens on the ...
user avatar
  • 141
2 votes
1 answer
203 views

How to deploy a contract with Rust?

I'm using Rust with crate web3 0.15.0. (Is there a better library to use?) My goal is to deploy contracts and call functions in them using programs I've written in Rust. I have two simple functions, ...
user avatar
  • 190
1 vote
0 answers
31 views

Rust: Need both events when a transaction is sent and when is confirmed

Rust. For a method send() of a smart contract I need to process both events when the transaction is sent (and generates txhash) and when it is confirmed. From https://docs.rs/ethcontract/0.7.2/...
user avatar
  • 1,284
1 vote
1 answer
85 views

Plans to migrate go-ethereum to rust-ethereum?

Is anyone planning to migrate go-ethereum to rust-ethereum? Rust with all its features such as zero-cost abstractions, safe memory management, fearless concurrency really outshines Go. Nathan Aw (...
user avatar
  • 1,845
0 votes
1 answer
467 views

Smart Contract Transfer Event Log Data & transfer _value [Rust]

I'd like to have a better understanding of events and logs data, more specifically when it comes to interacting with ERC20 tokens smart contracts and their Transfer events. I'm looking for a way to ...
user avatar
2 votes
1 answer
1k views

How to generate public key from private key in Rust?

How to generate Ethereum public key from private key in Rust? I found rust-secp256k1 and it seems to be what I need, but there is no documentation at all, which makes this crate for me, Rust newbie, ...
user avatar
  • 3,017
2 votes
0 answers
64 views

Can paritytech/parity be used as a library the same way that go-ethereum can be used in Go?

The go-ethereum project is divided into a set of standalone libraries that can be used in any Go project (e.g. smart contract interaction, keystore management, common cryptography and hex utils) Can ...
user avatar
4 votes
3 answers
2k views

How to sign a transaction in Rust

Given a private key, I would like to sign a transaction offline, so it can be sent to a node or Infura without unlocking an account first. I can find many examples in javascript using ethereumjs-tx ...
user avatar
  • 141
1 vote
1 answer
462 views

Comparing Rust and Solidity hash of big number or hex

I noticed that if I hash ordinary string using Rust and web3.sha3 I would get the same result. But if the number is big number or hex which would necessitate the inclusion of {encoding: 'hex'} as ...
user avatar
1 vote
1 answer
673 views

How to run ethkey under Parity

I want to run ethkey under Parity with this answer. But when I run the first command cargo build --release -p ethkey --features=ethkey-cli under the parity source folder, it returns: error: ...
user avatar
  • 399
5 votes
2 answers
1k views

Using Rust to call Geth's RPC interface

Given the code below, geth returns: {"jsonrpc":"2.0","id":"1","error":{"code":-32602,"message": "json: cannot unmarshal object into Go value of type []interface {}"}} The code connects to geth, but ...
user avatar
3 votes
1 answer
1k views

Parity installation problem in OSX

During the installation I've got at the end this: Last 15 lines from /Users/maksim/Library/Logs/Homebrew/parity/02.multirust: Compiling serde v0.7.4 Compiling itertools v0.4.13 Compiling bytes v0....
user avatar