@@ -54,7 +54,6 @@ The ``openchain`` module exports the following objects:
54
54
- `` MutationSigner `` : A class that can be used to sign a mutation.
55
55
- `` ByteBuffer `` : A buffer of raw bytes.
56
56
- `` Long `` : A class for representing a 64 bit integer value.
57
- - `` bitcore `` : The bitcore class from the bitcore-lib npm package.
58
57
59
58
## Code samples
60
59
@@ -83,11 +82,12 @@ This code submits a transaction that transfers 100 units of an asset from an iss
83
82
84
83
``` js
85
84
var openchain = require (" openchain" );
85
+ var bitcore = require (" bitcore-lib" );
86
86
87
87
var seed = " 0123456789abcdef0123456789abcdef" ;
88
88
89
89
// Load a private key from a seed
90
- var privateKey = openchain . bitcore .HDPrivateKey .fromSeed (seed, " openchain" );
90
+ var privateKey = bitcore .HDPrivateKey .fromSeed (seed, " openchain" );
91
91
var address = privateKey .publicKey .toAddress ();
92
92
93
93
// Calculate the accounts corresponding to the private key
@@ -133,11 +133,12 @@ This code submits a transaction recording a piece of arbitrary data (the ``store
133
133
134
134
``` js
135
135
var openchain = require (" openchain" );
136
+ var bitcore = require (" bitcore-lib" );
136
137
137
138
var seed = " 0123456789abcdef0123456789abcdef" ;
138
139
139
140
// Load a private key from a seed
140
- var privateKey = openchain . bitcore .HDPrivateKey .fromSeed (seed, " openchain" );
141
+ var privateKey = bitcore .HDPrivateKey .fromSeed (seed, " openchain" );
141
142
var address = privateKey .publicKey .toAddress ();
142
143
143
144
// Calculate the accounts corresponding to the private key
0 commit comments