Function encodeHdKeyPayloadWithChecksum

  • Encode an HD public or private key (as defined by BIP32) payload with a checksum.

    Parameters

    • payload: Uint8Array

      the HD public or private key payload to encode

    • __namedParameters: {
          crypto?: {
              sha256: {
                  hash: ((input) => Uint8Array) & ((input) => Uint8Array);
              };
          };
      } = {}
      • Optional crypto?: {
            sha256: {
                hash: ((input) => Uint8Array) & ((input) => Uint8Array);
            };
        }

        An optional object containing an implementation of sha256 to use.

        • sha256: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          }
          • hash: ((input) => Uint8Array) & ((input) => Uint8Array)

    Returns string

Generated using TypeDoc