wasm can't get address from ECDSA public key
Closed this issue · 2 comments
drunkirishcoder commented
Describe the bug
Unable to get the ECDSA address from a public key. works with a private key, but does not work if you direct get it by using a public key.
To Reproduce
const publicKey = new PublicKey('...');
publicKey.toAddressECDSA(NetworkType.Mainnet).toString()
the code will panic
problem appears to be here. instead using xonly_public_key
, it should try use self.public_key
.
aspect commented
@drunkirishcoder thanks for reporting this. The next drink is on me!
- Fixed in 8eb7500
- Merged into https://github.com/kaspanet/rusty-kaspa/tree/dev
- WASM SDK artifact can be obtained from https://github.com/kaspanet/rusty-kaspa/actions/runs/10672898810
Cheers!
drunkirishcoder commented
thank you