-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathresponse_objects.go
47 lines (39 loc) · 1.32 KB
/
response_objects.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package block_io_go
type BaseResponse struct {
Status string `json:"status"`
Data interface{} `json:"data"`
}
type ErrorResponse struct {
Status string `json:"status"`
Data ErrorData `json:"data"`
}
type ErrorData struct {
ErrorMessage string `json:"error_message"`
}
type SignatureRes struct {
Status string `json:"status"`
Data SignatureData `json:"data"`
}
type SignatureData struct {
EncryptedPassphrase EncryptedPassphrase `json:"encrypted_passphrase"`
Inputs Inputs `json:"inputs"`
MoreSignaturesNeeded bool `json:"more_signatures_needed"`
ReferenceID string `json:"reference_id"`
UnsignedTxHex string `json:"unsigned_tx_hex"`
}
type EncryptedPassphrase struct {
Passphrase string `json:"passphrase"`
SignerAddress string `json:"signer_address"`
SignerPublicKey string `json:"signer_public_key"`
}
type Inputs []struct {
DataToSign string `json:"data_to_sign"`
InputNo int64 `json:"input_no"`
SignaturesNeeded int64 `json:"signatures_needed"`
Signers Signers `json:"signers"`
}
type Signers []struct {
SignedData interface{} `json:"signed_data"`
SignerAddress string `json:"signer_address"`
SignerPublicKey string `json:"signer_public_key"`
}