1 | export function sign(registry, signerPair, u8a, options) {
|
2 | const encoded = u8a.length > 256
|
3 | ? registry.hash(u8a)
|
4 | : u8a;
|
5 | return signerPair.sign(encoded, options);
|
6 | }
|
7 | export function signV5(registry, signerPair, u8a, options) {
|
8 | const encoded = registry.hash(u8a);
|
9 | return signerPair.sign(encoded, options);
|
10 | }
|
11 | export function signGeneral(registry, u8a) {
|
12 | const encoded = registry.hash(u8a);
|
13 | return encoded;
|
14 | }
|