UNPKG

@polkadot/types

Version:
11 lines (10 loc) 295 B
export function sign(registry, signerPair, u8a, options) { const encoded = u8a.length > 256 ? registry.hash(u8a) : u8a; return signerPair.sign(encoded, options); } export function signGeneral(registry, u8a) { const encoded = registry.hash(u8a); return encoded; }