@ -18,11 +18,10 @@ var ErrAccountNotFound = fmt.Errorf("account has not yet been opened")
@@ -18,11 +18,10 @@ var ErrAccountNotFound = fmt.Errorf("account has not yet been opened")
// manipulated. This probably means someone is trying to steal funds.
varErrAccountManipulated=fmt.Errorf("the received account info has been manipulated")
// Account holds the keys and address of a Nano account.
// Account holds the public key and address of a Nano account.
typeAccountstruct{
PrivateKey*big.Int
PublicKey*big.Int
Addressstring
PublicKey*big.Int
Addressstring
}
typeblockInfostruct{
@ -30,20 +29,19 @@ type blockInfo struct {
@@ -30,20 +29,19 @@ type blockInfo struct {
ContentsBlock`json:"contents"`
}
// NewAccount creates a new Account and populates all its fields.