Key signature and wallet address get functions added to Public key (#144)

* small fixes

* gofmt

* fix in raw tx build

* fixes after review

* balance getter interface

* moved address and signature calculation to public key

* errors handling

* PublicKey() returns PublicKey instead of bytes slice

* fixes after review

* fixes after review
This commit is contained in:
Anastasia Prasolova 2019-02-19 21:37:35 +03:00 committed by decentralisedkev
parent cdba88b9f2
commit 2fd2866f7f
4 changed files with 60 additions and 39 deletions

View file

@ -103,7 +103,7 @@ func newAccountFromPrivateKey(p *PrivateKey) (*Account, error) {
}
a := &Account{
publicKey: pubKey,
publicKey: pubKey.Bytes(),
privateKey: p,
Address: pubAddr,
wif: wif,