Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
286 changes: 266 additions & 20 deletions Cargo.lock

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ p256 = { version = "0.13", features = ["ecdsa"] }
ecdsa = "0.16.9"
elliptic-curve = "0.13.8"

cosmrs = "0.22.0"
bech32 = "0.11.0"
rand = "0.8.5"
hkdf = "0.12.4"
sha2 = "0.10.8"
x25519-dalek = { version = "2.0.0", features = ["static_secrets"] }
aes = "0.8.4"
cmac = "0.7.2"
ctr = "0.9.0"
cipher = "0.4.4"
Comment thread
Marca23 marked this conversation as resolved.
Outdated

[build-dependencies]
tonic-build = { version = "0.13.1", features = ["prost"] }

Expand Down
24 changes: 24 additions & 0 deletions proto/fkms/v1/signer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ service FkmsService {
rpc SignXrpl(SignXrplRequest) returns (SignXrplResponse);
rpc SignIcon(SignIconRequest) returns (SignIconResponse);
rpc SignFlow(SignFlowRequest) returns (SignFlowResponse);
rpc SignSecret(SignSecretRequest) returns (SignSecretResponse);
rpc GetSignerAddresses(GetSignerAddressesRequest) returns (GetSignerAddressesResponse);
}

Expand Down Expand Up @@ -46,6 +47,15 @@ message SignFlowResponse {
bytes tx_blob = 1;
}

message SignSecretRequest {
SecretSignerPayload signer_payload = 1;
Tss tss = 2;
}

message SignSecretResponse {
bytes tx_blob = 1;
}

message GetSignerAddressesRequest {}

message GetSignerAddressesResponse {
Expand Down Expand Up @@ -75,6 +85,19 @@ message FlowSignerPayload {
bytes script = 6;
}

message SecretSignerPayload {
string sender = 1;
string contract_address = 2;
string chain_id = 3;
uint64 account_number = 4;
uint64 sequence = 5;
uint64 gas_limit = 6;
string gas_prices = 7;
string memo = 8;
string code_hash = 9;
string pubkey = 10;
Comment thread
Marca23 marked this conversation as resolved.
Outdated
}

message Tss {
bytes message = 1;
bytes random_addr = 2;
Expand All @@ -91,4 +114,5 @@ enum ChainType {
XRPL = 1;
ICON = 2;
FLOW = 3;
SECRET = 4;
}
1 change: 1 addition & 0 deletions src/codec.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod cosmwasm_secret;
pub mod evm;
pub mod flow;
pub mod icon;
Expand Down
Loading
Loading