ebceu4 / waves-crypto

Waves platform crypto primitives and binary serialization.
MIT License
0 stars 0 forks source link

README address example is misleading #3

Closed roccomuso closed 5 years ago

roccomuso commented 5 years ago

The .address(...) method doesn't accepts a seed.

export const address = (keyOrSeed: KeyPair | PublicKey | string, chainId: string = 'W')

The README.md example is misleading:

//Mainnet address
wc.address('seed') //3PGMh3vQekpTbvUAiKwdzhWsLaxoSBEcsFJ
roccomuso commented 5 years ago

My fault, it wants an obj for pubKey