HDPrivateKey.fromKeyAndChainCode constructor

HDPrivateKey.fromKeyAndChainCode(
  1. ECPrivateKey privateKey,
  2. Uint8List chaincode
)

Creates a master key from an existing private key and chain code.

Implementation

HDPrivateKey.fromKeyAndChainCode(this.privateKey, Uint8List chaincode)
  : super._(
  chaincode: chaincode,
  depth: 0,
  index: 0,
  parentFingerprint: 0,
) {
  checkBytes(chaincode, 32, name: "Chaincode");
}