Comments (2)
I think I found the problem. If I use
eosKeyPair = EosSharp.Core.Helpers.CryptoHelper.GenerateKeyPair("sha256x2");
the private key is ok but the public key is wrong.
By using the code below (skipping the 'sha256x2' parameter on the public key), both private and public code are correct and can be used when creating an EOS account and import to Scatter.
var key = Secp256K1Manager.GenerateRandomKey();
var pubKey = Secp256K1Manager.GetPublicKey(key, true);
string privateKey = KeyToString(key, "sha256x2");
string publicKey = KeyToString(pubKey, null, "EOS");
from eos-sharp.
Thanks for the bug report. fixed here: 9ca6f4b
from eos-sharp.
Related Issues (20)
- a GetBlock bug HOT 1
- AesEncrypt throws CryptographicException: 'Specified initialization vector (IV) does not match the block size for this algorithm.' HOT 1
- Implement TAPoS ref block with blocks behind
- How to generate the public key from a private key in eos-Sharp? HOT 1
- object to float conversion InvalidCastException HOT 2
- eos-sharp api call gets failed HOT 1
- Broadcast fails when data contains Digital Signature HOT 2
- How to use eos-sharp with ASP .NET core web API
- How to access multiindex table by its primary key?
- How to call action from eos-sharp? HOT 1
- Use TLS 1.2 in ASP.NET Core 3.1 HOT 1
- Generate uuid or unique ID in smart contract. HOT 1
- AbiSerialization error
- get Actions Count HOT 1
- Get table rows limit
- eos-sharp is not actively maintained discussion HOT 7
- Incorrect SIGN_KEY_DATA_SIZE
- When calling CreateTransaction - the response ended prematurely - Calling Wax chain
- incorrect ReadAction in AbiSerializationProvider
- Error when pushing transaction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eos-sharp.