Docs: add hexa export example for private key

This commit is contained in:
Esteban Ordano 2015-01-27 10:12:04 -03:00
parent c240e66043
commit 54c8b17164
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ var privateKey = new bitcore.PrivateKey();
var exported = privateKey.toWIF();
// e.g. L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m
var imported = bitcore.PrivateKey.fromWIF(exported);
var hexa = exported.toString();
// e.g. 'b9de6e778fe92aa7edb69395556f843f1dce0448350112e14906efc2a80fa61a'
```
## Create an Address