Some checks failed
Build SimApp / build (amd64) (push) Waiting to run
Build SimApp / build (arm64) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Build & Push / build (push) Waiting to run
Run Gosec / Gosec (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Checks dependencies and mocks generation / Check go mod tidy (push) Waiting to run
Checks dependencies and mocks generation / Check up to date mocks (push) Waiting to run
System Tests / setup (push) Waiting to run
System Tests / test-system (push) Blocked by required conditions
System Tests / test-system-legacy (push) Blocked by required conditions
Tests / Code Coverage / split-test-files (push) Waiting to run
Tests / Code Coverage / tests (00) (push) Blocked by required conditions
Tests / Code Coverage / tests (01) (push) Blocked by required conditions
Tests / Code Coverage / tests (02) (push) Blocked by required conditions
Tests / Code Coverage / tests (03) (push) Blocked by required conditions
Tests / Code Coverage / test-integration (push) Waiting to run
Tests / Code Coverage / test-e2e (push) Waiting to run
Tests / Code Coverage / repo-analysis (push) Blocked by required conditions
Tests / Code Coverage / test-sim-nondeterminism (push) Waiting to run
Tests / Code Coverage / test-clientv2 (push) Waiting to run
Tests / Code Coverage / test-core (push) Waiting to run
Tests / Code Coverage / test-depinject (push) Waiting to run
Tests / Code Coverage / test-errors (push) Waiting to run
Tests / Code Coverage / test-math (push) Waiting to run
Tests / Code Coverage / test-schema (push) Waiting to run
Tests / Code Coverage / test-collections (push) Waiting to run
Tests / Code Coverage / test-cosmovisor (push) Waiting to run
Tests / Code Coverage / test-confix (push) Waiting to run
Tests / Code Coverage / test-store (push) Waiting to run
Tests / Code Coverage / test-log (push) Waiting to run
Tests / Code Coverage / test-x-tx (push) Waiting to run
Tests / Code Coverage / test-x-nft (push) Waiting to run
Tests / Code Coverage / test-x-circuit (push) Waiting to run
Tests / Code Coverage / test-x-feegrant (push) Waiting to run
Tests / Code Coverage / test-x-evidence (push) Waiting to run
Tests / Code Coverage / test-x-upgrade (push) Waiting to run
Tests / Code Coverage / test-tools-benchmark (push) Waiting to run
Build & Push SDK Proto Builder / build (push) Has been cancelled
39 lines
1.4 KiB
Protocol Buffer
39 lines
1.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.crypto.ed25519;
|
|
|
|
import "amino/amino.proto";
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519";
|
|
|
|
// PubKey is an ed25519 public key for handling Tendermint keys in SDK.
|
|
// It's needed for Any serialization and SDK compatibility.
|
|
// It must not be used in a non Tendermint key context because it doesn't implement
|
|
// ADR-28. Nevertheless, you will like to use ed25519 in app user level
|
|
// then you must create a new proto message and follow ADR-28 for Address construction.
|
|
message PubKey {
|
|
option (amino.name) = "tendermint/PubKeyEd25519";
|
|
// The Amino encoding is simply the inner bytes field, and not the Amino
|
|
// encoding of the whole PubKey struct.
|
|
//
|
|
// Example (JSON):
|
|
// s := PubKey{Key: []byte{0x01}}
|
|
// out := AminoJSONEncoder(s)
|
|
//
|
|
// Then we have:
|
|
// out == `"MQ=="`
|
|
// out != `{"key":"MQ=="}`
|
|
option (amino.message_encoding) = "key_field";
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PublicKey"];
|
|
}
|
|
|
|
// PrivKey defines a ed25519 private key.
|
|
// NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
|
|
message PrivKey {
|
|
option (amino.name) = "tendermint/PrivKeyEd25519";
|
|
option (amino.message_encoding) = "key_field";
|
|
|
|
bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PrivateKey"];
|
|
}
|