-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
InternetComputer.proto
45 lines (35 loc) · 1.04 KB
/
InternetComputer.proto
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
// SPDX-License-Identifier: Apache-2.0
//
// Copyright © 2017 Trust Wallet.
syntax = "proto3";
package TW.InternetComputer.Proto;
option java_package = "wallet.core.jni.proto";
import "Common.proto";
// Internet Computer Transactions
message Transaction {
// ICP ledger transfer arguments
message Transfer {
string to_account_identifier = 1;
uint64 amount = 2;
uint64 memo = 3;
uint64 current_timestamp_nanos = 4;
uint64 permitted_drift = 5;
}
// Payload transfer
oneof transaction_oneof {
Transfer transfer = 1;
}
}
// Input data necessary to create a signed transaction.
message SigningInput {
bytes private_key = 1;
Transaction transaction = 2;
}
// Transaction signing output.
message SigningOutput {
// Signed and encoded transaction bytes.
// NOTE: Before sending to the Rosetta node, this value should be hex-encoded before using with the JSON structure.
bytes signed_transaction = 1;
Common.Proto.SigningError error = 2;
string error_message = 3;
}