-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: solana native support #702
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 2009e84.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -57,5 +58,6 @@ | |||
"bs58": "^4.0.1", | |||
"cosmjs-types": "^0.4.1", | |||
"msw": "^0.27.1" | |||
} | |||
}, | |||
"gitHead": "a59c5a12b265b6f64c65920cf330358a250227c2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert before opening me
@@ -245,6 +255,7 @@ export class NativeHDWallet | |||
#deviceId: string; | |||
#initialized = false; | |||
#masterKey: Promise<Isolation.Core.BIP32.Node> | undefined = undefined; | |||
#ed25519MasterKey: Promise<Ed25519Node> | undefined = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since regular master key is a regular BIP32 node i.e seckp256k1 elliptic curve
fd6fff2
to
5f7eb93
Compare
@@ -15,6 +15,7 @@ | |||
}, | |||
"dependencies": { | |||
"@bitcoinerlab/secp256k1": "^1.1.1", | |||
"@noble/curves": "^1.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note @noble/ed25519 is also available as a lightweight version but @noble/curves has more safety/features implemented
// SLIP-0010 for Ed25519 | ||
const data = Buffer.concat([Buffer.from([0x00]), Buffer.from(this.#privateKey), indexBuffer]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the part we probably got wrong
Description
Includes:
Transaction signature verification failure
because signing is using secp256k1 signature, which, even if you manage to sign with it, will be nope'd by the node)TODO:
Issue