secjs wallet includes privat key public key and address
npm install @sec-block/secjs-wallet

Kind: global class
* SecWallet
* new SecWallet(priv, pub)
* .privKey
* .pubKey
* .assert(val, msg)
* .generate(icapGenerate)
* .generateVantiyaAddress(pattern)
* .getPrivateKey()
* .getPrivateKeyString()
* .getPublicKey()
* .getPublicKeyString()
* .getAddress()
* .getAddressString()
* .getAddressChecksumString()
* .fromPrivateKey(priv)
* .fromExtendedPrivateKey(priv)
* .fromPublicKey(pub, nonStrict)
* .fromExtendedPublicKey(pub)
| Param | Type |
| --- | --- |
| priv | String |
| pub | String |
Kind: instance property of SecWallet
Kind: instance property of SecWallet
Kind: instance method of SecWallet
| Param |
| --- |
| val |
| msg |
SecWallet | Param | Type | Description |
| --- | --- | --- |
| icapGenerate | Buffer | -create an instance based on a new random key, setting icap to true will generate an address suitable for the ICAP Direct mode. |
Kind: instance method of SecWallet
| Param | Type |
| --- | --- |
| pattern | String |
Kind: instance method of SecWallet
Kind: instance method of SecWallet
Kind: instance method of SecWallet
Kind: instance method of SecWallet
Kind: instance method of SecWallet
Kind: instance method of SecWallet
Kind: instance method of SecWallet
Kind: instance method of SecWallet
| Param | Type |
| --- | --- |
| priv | String |
Kind: instance method of SecWallet
| Param | Type |
| --- | --- |
| priv | String |
Kind: instance method of SecWallet
| Param | Type |
| --- | --- |
| pub | String |
| nonStrict | Buffer |
Kind: instance method of SecWallet
| Param | Type |
| --- | --- |
| pub | String |
Kind: global class
* SecHDKey
* .fromMasterSeed(seedBuffer)
* .fromExtendedKey(base58Key)
* .privateExtendedKey()
* .publicExtendedKey()
* .derivePath(path)
* .deriveChild(index)
* .getWallet()
Kind: instance method of SecHDKey
| Param | Type |
| --- | --- |
| seedBuffer | String |
Kind: instance method of SecHDKey
| Param | Type |
| --- | --- |
| base58Key | String |
Kind: instance method of SecHDKey
Kind: instance method of SecHDKey
Kind: instance method of SecHDKey
| Param |
| --- |
| path |
Kind: instance method of SecHDKey
| Param |
| --- |
| index |
Kind: instance method of SecHDKey