UNPKG

@funded-labs/plug-controller

Version:

Internet Computer Plug wallet's controller

18 lines (17 loc) 743 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Types = exports.HARDENED_OFFSET = exports.SUB_ACCOUNT_ZERO = exports.ACCOUNT_DOMAIN_SEPERATOR = exports.DERIVATION_PATH = void 0; // ED25519 key derivation path exports.DERIVATION_PATH = "m/44'/223'/0'/0"; // Dfinity Account separator exports.ACCOUNT_DOMAIN_SEPERATOR = '\x0Aaccount-id'; // Subaccounts are arbitrary 32-byte values. exports.SUB_ACCOUNT_ZERO = Buffer.alloc(32); exports.HARDENED_OFFSET = 0x80000000; var Types; (function (Types) { Types["mnemonic"] = "MNEMONIC"; Types["pem256k1"] = "PEM_256k1"; Types["pem25519"] = "PEM_25519"; Types["secretKey256k1"] = "SECRET_KEY_256k1"; })(Types = exports.Types || (exports.Types = {}));