diff options
author | Martin Holst Swende <martin@swende.se> | 2019-02-14 04:37:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 04:37:59 +0800 |
commit | e9f70c906415469bf31a1d677f735bf36d6fa93a (patch) | |
tree | feafb689ace1e86c48923a0dae0f414f4cae3143 /signer/core | |
parent | 3fd6db2bf63ce90232de445c7f33943406a5e634 (diff) | |
download | go-tangerine-e9f70c906415469bf31a1d677f735bf36d6fa93a.tar go-tangerine-e9f70c906415469bf31a1d677f735bf36d6fa93a.tar.gz go-tangerine-e9f70c906415469bf31a1d677f735bf36d6fa93a.tar.bz2 go-tangerine-e9f70c906415469bf31a1d677f735bf36d6fa93a.tar.lz go-tangerine-e9f70c906415469bf31a1d677f735bf36d6fa93a.tar.xz go-tangerine-e9f70c906415469bf31a1d677f735bf36d6fa93a.tar.zst go-tangerine-e9f70c906415469bf31a1d677f735bf36d6fa93a.zip |
clef: documentation generator + docs (#19020)
* clef: implement documentation generation + remove unused struct
* clef: formatting + spelling
* clef: updates to doc
Diffstat (limited to 'signer/core')
-rw-r--r-- | signer/core/api.go | 6 | ||||
-rw-r--r-- | signer/core/signed_data.go | 2 | ||||
-rw-r--r-- | signer/core/types.go | 2 |
3 files changed, 2 insertions, 8 deletions
diff --git a/signer/core/api.go b/signer/core/api.go index 30888f842..837b7266c 100644 --- a/signer/core/api.go +++ b/signer/core/api.go @@ -236,12 +236,6 @@ type ( Message struct { Text string `json:"text"` } - PasswordRequest struct { - Prompt string `json:"prompt"` - } - PasswordResponse struct { - Password string `json:"password"` - } StartupInfo struct { Info map[string]interface{} `json:"info"` } diff --git a/signer/core/signed_data.go b/signer/core/signed_data.go index e481f5e1d..9df39ef59 100644 --- a/signer/core/signed_data.go +++ b/signer/core/signed_data.go @@ -250,7 +250,7 @@ func (api *SignerAPI) determineSignatureFormat(ctx context.Context, contentType message := []*NameValueType{ { Name: "message", - Typ: "text/plain", + Typ: accounts.MimetypeTextPlain, Value: msg, }, } diff --git a/signer/core/types.go b/signer/core/types.go index c1d3b9bf8..8743746ba 100644 --- a/signer/core/types.go +++ b/signer/core/types.go @@ -75,7 +75,7 @@ type SendTxArgs struct { Nonce hexutil.Uint64 `json:"nonce"` // We accept "data" and "input" for backwards-compatibility reasons. Data *hexutil.Bytes `json:"data"` - Input *hexutil.Bytes `json:"input"` + Input *hexutil.Bytes `json:"input,omitempty"` } func (args SendTxArgs) String() string { |