UNPKG

504 BJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/util-crypto authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3import { availableNetworks } from "../networks.js";
4
5function networkToPrefix({
6 prefix
7}) {
8 return prefix;
9}
10
11export const defaults = {
12 allowedDecodedLengths: [1, 2, 4, 8, 32, 33],
13 // publicKey has prefix + 2 checksum bytes, short only prefix + 1 checksum byte
14 allowedEncodedLengths: [3, 4, 6, 10, 35, 36, 37, 38],
15 allowedPrefix: availableNetworks.map(networkToPrefix),
16 prefix: 42
17};
\No newline at end of file