* Allow double-byte ss58 * Update keyring tests (non-68) * Range check * Fixup tests and encoding * Adjust keyring test * Adjust * Assert format * Additionl subkey equivalency tests * ecdsa tests * Remove invalid test * UpdateAssert of reserved * Cleanups * cleanups * Last test for Substrate equality * crosscheck update * network null * network
13 lines
440 B
TypeScript
13 lines
440 B
TypeScript
// Copyright 2017-2021 @polkadot/util-crypto authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { available } from '@polkadot/networks';
|
|
|
|
export const defaults = {
|
|
allowedDecodedLengths: [1, 2, 4, 8, 32, 33],
|
|
// publicKey has prefix + 2 checksum bytes, short only prefix + 1 checksum byte
|
|
allowedEncodedLengths: [3, 4, 6, 10, 35, 36, 37, 38],
|
|
allowedPrefix: available.map(({ prefix }) => prefix),
|
|
prefix: 42
|
|
};
|