Skip to content

Commit

Permalink
Add stubs for conform to the accounts.Wallet interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleecode committed Jul 17, 2019
1 parent 2da794f commit e1a8432
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hdwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,21 @@ func (w *Wallet) Path(account accounts.Account) (string, error) {
return account.URL.Path, nil
}

// SignData is not implemented
func (w *Wallet) SignData(account Account, mimeType string, data []byte) ([]byte, error) {
return nil, errors.New("not implemented")
}

// SignDataWithPassphrase is not implemented
func (w *Wallet) SignDataWithPassphrase(account Account, passphrase, mimeType string, data []byte) ([]byte, error) {
return nil, errors.New("not implemented")
}

// SignText is not implemented
func (w *Wallet) SignText(account Account, text []byte) ([]byte, error) {
return nil, errors.New("not implemented")
}

// ParseDerivationPath parses the derivation path in string format into []uint32
func ParseDerivationPath(path string) (accounts.DerivationPath, error) {
return accounts.ParseDerivationPath(path)
Expand Down

0 comments on commit e1a8432

Please sign in to comment.