Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@darkwolf/base58

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkwolf/base58 - npm Package Compare versions

Comparing version 6.6.7 to 13.21.69

Base58Error.js

7

package.json
{
"name": "@darkwolf/base58",
"version": "6.6.7",
"version": "13.21.69",
"description": "Base58",
"main": "src/index.js",
"main": "index.js",
"scripts": {

@@ -25,5 +25,4 @@ "test": "echo \"Error: no test specified\" && exit 1"

"dependencies": {
"@darkwolf/code-error": "^6.6.6",
"@darkwolf/validator": "^6.7.0"
"@darkwolf/code-error": "^13.21.69"
}
}

@@ -11,14 +11,30 @@ # Base58

// encode ASCII string
const encoded = base58.encode('Ave, Darkwolf!')
const decoded = base58.decode(encoded)
// encode safe integer
const encodedInt = base58.encodeInt(100000001)
const decodedInt = base58.decodeInt(encodedInt)
// custom alphabet
const {
DARKWOLF_ALPHABET,
BITCOIN_ALPHABET,
RIPPLE_ALPHABET,
FLICKR_ALPHABET
} = require('@darkwolf/base58/constants')
const btc58 = base58.withAlphabet(BITCOIN_ALPHABET)
const encodedBtc = btc58.encode('Ave, Bitcoin!')
const decodedBtc = btc58.decode(encodedBtc)
```
## Init
### new Base58(alphabet)
## Methods
### encode(input)
### decode(input)
### encodeInt(input)
### decodeInt(input)
### withAlphabet(alphabet)
### encode(string)
### decode(base58)
### encodeInt(integer)
### decodeInt(base58)
## Error Codes
#### invalid-alphabet
#### invalid-input
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc