@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
9 lines (8 loc) • 331 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.sr25519KeypairToU8a = void 0;
const util_1 = require("@polkadot/util");
function sr25519KeypairToU8a({ publicKey, secretKey }) {
return (0, util_1.u8aConcat)(secretKey, publicKey).slice();
}
exports.sr25519KeypairToU8a = sr25519KeypairToU8a;
;