@scure/base
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -315,4 +315,8 @@ /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
} | ||
export const utils = { alphabet, chain, checksum, radix, radix2, join, padding }; | ||
// prettier-ignore | ||
export const utils = { | ||
alphabet, chain, checksum, convertRadix, convertRadix2, radix, radix2, join, padding, | ||
}; | ||
// RFC 4648 aka RFC 3548 | ||
@@ -319,0 +323,0 @@ // --------------------- |
@@ -302,3 +302,6 @@ /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
} | ||
export const utils = { alphabet, chain, checksum, radix, radix2, join, padding }; | ||
// prettier-ignore | ||
export const utils = { | ||
alphabet, chain, checksum, convertRadix, convertRadix2, radix, radix2, join, padding, | ||
}; | ||
// RFC 4648 aka RFC 3548 | ||
@@ -305,0 +308,0 @@ // --------------------- |
@@ -43,4 +43,14 @@ /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
/** | ||
* Slow: O(n^2) time complexity | ||
* @__NO_SIDE_EFFECTS__ | ||
*/ | ||
declare function convertRadix(data: number[], from: number, to: number): number[]; | ||
/** | ||
* Implemented with numbers, because BigInt is 5x slower | ||
* @__NO_SIDE_EFFECTS__ | ||
*/ | ||
declare function convertRadix2(data: number[], from: number, to: number, padding: boolean): number[]; | ||
/** | ||
* @__NO_SIDE_EFFECTS__ | ||
*/ | ||
declare function radix(num: number): Coder<Uint8Array, number[]>; | ||
@@ -61,2 +71,4 @@ /** | ||
checksum: typeof checksum; | ||
convertRadix: typeof convertRadix; | ||
convertRadix2: typeof convertRadix2; | ||
radix: typeof radix; | ||
@@ -63,0 +75,0 @@ radix2: typeof radix2; |
@@ -306,3 +306,6 @@ "use strict"; | ||
} | ||
exports.utils = { alphabet, chain, checksum, radix, radix2, join, padding }; | ||
// prettier-ignore | ||
exports.utils = { | ||
alphabet, chain, checksum, convertRadix, convertRadix2, radix, radix2, join, padding, | ||
}; | ||
// RFC 4648 aka RFC 3548 | ||
@@ -309,0 +312,0 @@ // --------------------- |
{ | ||
"name": "@scure/base", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -157,3 +157,3 @@ # scure-base | ||
## base58 is O(n^2) and radixes | ||
### base58 is O(n^2) and radixes | ||
@@ -195,2 +195,3 @@ `Uint8Array` is represented as big-endian number: | ||
- [scure-btc-signer](https://github.com/paulmillr/scure-btc-signer) | ||
- [prefixed-api-key](https://github.com/truestamp/prefixed-api-key): | ||
@@ -201,2 +202,8 @@ A re-write of seamapi/prefixed-api-key that enhances the | ||
[Motivating post on the issues with using JWT from fly.io](https://fly.io/blog/api-tokens-a-tedious-survey/) | ||
- [coinspace](https://github.com/CoinSpace/CoinSpace) wallet and its modules: | ||
[ada](https://github.com/CoinSpace/cs-cardano-wallet), | ||
[btc](https://github.com/CoinSpace/cs-bitcoin-wallet) | ||
[eos](https://github.com/CoinSpace/cs-eos-wallet), | ||
[sol](https://github.com/CoinSpace/cs-solana-wallet), | ||
[xmr](https://github.com/CoinSpace/cs-monero-wallet) | ||
@@ -203,0 +210,0 @@ ## License |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79441
1619
210