Skip to content

Commit

Permalink
mod: README.md seed example
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wang committed Jul 27, 2020
1 parent 1b60169 commit b8f6373
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ let hd = require("hd-address").HD(mnemonic) //v3.0
[example](./example/seed.js)

```javascript

const hdAddress = require("hd-address")
const seed ="03d0be996b63e90c7625dd3f5319c3bc11669d3d35ae5dc345595e5e59be74084f"
// Seed should be at least 128 bits and most 512 bits
let seedBuf = Buffer.from(myselfSeed, "hex")
let hd = require("hd-address").HD(seedBuf,hd.keyType.seed) //v3.0
let hd = hdAddress.HD(seedBuf,hdAddress.keyType.seed) //v3.0

```

Expand Down Expand Up @@ -81,9 +81,9 @@ let hd = require("hd-address").HD(seedBuf,hd.keyType.seed) //v3.0
```

### Advanced Usage
**extension** [example](./example/extension/index.js) //v3.0
**extension** [example](./example/extension/index.js)
```js
const AddressClass = require("hd-address").AddressClass
const AddressClass = require("hd-address").AddressClass //v3.0

module.exports = class EosAddress extends AddressClass {
constructor(hd) {
Expand Down

0 comments on commit b8f6373

Please sign in to comment.