UNPKG

@polkadot/types

Version:
15 lines (14 loc) 414 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sign = sign; exports.signGeneral = signGeneral; function sign(registry, signerPair, u8a, options) { const encoded = u8a.length > 256 ? registry.hash(u8a) : u8a; return signerPair.sign(encoded, options); } function signGeneral(registry, u8a) { const encoded = registry.hash(u8a); return encoded; }