cypherstack / stack_wallet

Stack Wallet, a multicoin, cryptocurrency wallet
https://stackwallet.com
GNU General Public License v3.0
209 stars 58 forks source link

Adding Pactus support #747

Closed orgepo closed 7 months ago

orgepo commented 8 months ago

That will be good if we have Pactus Blockchain support on the stack wallet too.

sneurlax commented 8 months ago

Yeah that would be awesome! Can you submit a PR to that effect?

orgepo commented 8 months ago

@sneurlax Im not a dart developer TBH. Can it done by the team? Or is there any pattern or guide for that?

sneurlax commented 8 months ago

If it's very similar to Bitcoin, it'll probably be a pure-Dart endeavor and pretty easy. If it's similar to any of the supported coins except for Monero, Wownero, Epic Cash, and/or Firo, it'll still probably be fairly easy and purely in Dart. If it's different (like a cryptonote or other custom privacy coin), it's still possible to integrate, but may take a plugin. We currently have plugins that use C++ and Rust libraries, but these plugins take a lot of work. Rust is easier to integrate than C++ because the bindings can for the most part be autogenerated.

I see there's Go and Rust code. Go is possible but we haven't done it yet, so again, Rust is ideal. Maybe the Pactus community can look into it more closely? For reference, we were hired to complete the Epic Cash and Firo mobile plugins and they can be used by other projects, too.

orgepo commented 8 months ago

@sneurlax It's not complex. that's use BLS and Blake2b for cryptography. and yes, a full wallet is implemented on Golang on the core repository of Pactus.

I tried to add it myself, but it was so hard for me since I'm not a dart dev.

But I can help you in their cryptography and gRPC APIs and you can add the code if you are a dart dev. (I know them in detail.)

Here are more docs too:

https://pactus.org/learn/blockchain/cryptography/ https://pactus.org/learn/blockchain/address/ https://pactus.org/learn/blockchain/serialization/ https://pactus.org/learn/transaction/format/ https://pactus.org/learn/api/grpc/

I hope I can help and we have this new coin on the stack wallet soon.

sneurlax commented 8 months ago

We may be doing some gRPC API work in order to add MimbleWimble Extension Blocks for Litecoin, in which case I think that'd be a good chunk of the work needed for Pactus support.

orgepo commented 8 months ago

Nice, so is there any chance to have pactus in stack wallet soon? When we can have it you think? I can contribute and help to boost the process!