DINAMO Networks is now aDINAMO cyber security company!
Java API
HSM DINAMO
Loading...
Searching...
No entry found
BchainKeyInfo Class Reference

Contains the properties of a key from the blockchain module. More...

Public Methods

byte getStorageType ()
 
int getType ()
 
byte[] getBip32Ver ()
 
byte getBip32Depth ()
 
byte[] getParentFingerprint ()
 
byte[] getChildNumber ()
 

Detailed description

Contains the properties of a key from the blockchain module.

Returned by Dinamo#bchainGetKeyInfo(String) with information about a key stored in the HSM. The BIP32 fields are filled with zeros for objects that are not of the blockchain type.

See also
TacNDJavaLib.DN_BCHAIN_KEY_INFO_ST_SL
TacNDJavaLib.DN_BCHAIN_KEY_INFO_ST_BLKC

Function documentation

◆ getStorageType()

byte getStorageType ( )
Returns
General object type. TacNDJavaLib#DN_BCHAIN_KEY_INFO_ST_SL for a common object or TacNDJavaLib#DN_BCHAIN_KEY_INFO_ST_BLKC for a blockchain object.

getType()

int getType ( )
Returns
Object type. If getStorageType() is TacNDJavaLib#DN_BCHAIN_KEY_INFO_ST_SL, it contains values for common algorithms. If it is TacNDJavaLib#DN_BCHAIN_KEY_INFO_ST_BLKC, it contains blockchain types such as TacNDJavaLib#DN_BCHAIN_BIP32_XPRV.

◆ getBip32Ver()

byte[] getBip32Ver ( )
Returns
XPrv BIP32 version (4 bytes). Zero-padded for non-BIP32 objects.

◆ getBip32Depth()

byte getBip32Depth ( )
Returns
XPrv BIP32 depth. Zero for non-BIP32 objects.

◆ getParentFingerprint()

byte[] getParentFingerprint ( )
Returns
Fingerprint of the XPrv BIP32 parent node (4 bytes). Zero-padded for non-BIP32 objects.

◆ getChildNumber()

byte[] getChildNumber ( )
Returns
XPrv BIP32 child node number (4 bytes). Zero-padded for non-BIP32 objects.