3.1.2 • Published 4 years ago
swtc-address-codec v3.1.2
swtc-address-codec
API
> var api = require('swtc-address-codec');
> api.decodeSeed('snwJzMKPjEBodxVU8YqwAH7PpZe4j')
{ version: 33,
bytes:
[ 176, 251, 212, 225, 99, 149, 131, 65, 41, 207, 158, 225, 190, 176, 6, 156 ],
type: 'secp256k1' }
> api.decodeAccountID('jPo32F1gUA4TtPzquhNBEq1L1wXmcghqUi')
[ 250,
12,
59,
75,
102,
13,
118,
27,
45,
216,
138,
231,
43,
56,
233,
175,
217,
75,
252,
20 ]
And ?? There's more to the wonderful world then swtc
We give you the kitchen sink.
> console.log(api)
{ Codec: [Function: AddressCodec],
codecs:
{ bitcoin:
AddressCodec {
alphabet: '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz',
codec: [Object],
base: 58 },
ripple:
AddressCodec {
alphabet: 'rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz',
codec: [Object],
base: 58 },
tipple:
AddressCodec {
alphabet: 'RPShNAF39wBUDnEGHJKLM4pQrsT7VWXYZ2bcdeCg65jkm8ofqi1tuvaxyz',
codec: [Object],
base: 58 },
jingtum:
AddressCodec {
alphabet: 'jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz',
codec: [Object],
base: 58 },
bizain:
AddressCodec {
alphabet: 'bpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2jcdeCg65rkm8oFqi1tuvAxyz',
codec: [Object],
base: 58 },
stellar:
AddressCodec {
alphabet: 'gsphnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCr65jkm8oFqi1tuvAxyz',
codec: [Object],
base: 58 } },
decode: [Function: decode],
encode: [Function: encode],
decodeEdSeed: [Function],
encodeEdSeed: [Function],
isValidEdSeed: [Function],
decodeSeed: [Function],
encodeSeed: [Function],
isValidSeed: [Function],
decodeAccountID: [Function],
encodeAccountID: [Function],
isValidAccountID: [Function],
decodeAddress: [Function],
encodeAddress: [Function],
isValidAddress: [Function],
decodeNodePublic: [Function],
encodeNodePublic: [Function],
isValidNodePublic: [Function],
decodeNodePrivate: [Function],
encodeNodePrivate: [Function],
isValidNodePrivate: [Function],
decodeK256Seed: [Function],
encodeK256Seed: [Function],
isValidK256Seed: [Function] }
3.1.2
4 years ago
3.1.1
4 years ago
3.1.0
4 years ago
3.0.4
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.11
5 years ago
2.0.10
5 years ago
2.0.9
5 years ago
2.0.8
5 years ago
2.0.7
5 years ago
2.0.6
5 years ago
0.9.2
5 years ago
0.9.1
5 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago