diff --git a/config/toml.go b/config/toml.go index 188f8255a..efdf004f2 100644 --- a/config/toml.go +++ b/config/toml.go @@ -567,7 +567,7 @@ var testGenesisFmt = `{ "validators": [ { "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE=" }, "power": "10", @@ -585,11 +585,11 @@ var testGenesisFmt = `{ var testPrivValidatorKey = `{ "address": "A3258DCBF45DCA0DF052981870F2D1441A36D145", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE=" }, "priv_key": { - "type": "tendermint/PrivKeyEd25519", + "type": "ostracon/PrivKeyEd25519", "value": "EVkqJO/jIXp3rkASXfh9YnyToYXRXhBr6g9cQVxPFnQBP/5povV4HTjvsy530kybxKHwEi85iU8YL0qQhSYVoQ==" } }` diff --git a/crypto/bls/bls.go b/crypto/bls/bls.go index 66f845051..7fc76267e 100644 --- a/crypto/bls/bls.go +++ b/crypto/bls/bls.go @@ -17,8 +17,8 @@ import ( var _ crypto.PrivKey = PrivKey{} const ( - PrivKeyName = "tendermint/PrivKeyBLS12" - PubKeyName = "tendermint/PubKeyBLS12" + PrivKeyName = "ostracon/PrivKeyBLS12" + PubKeyName = "ostracon/PubKeyBLS12" PrivKeySize = 32 PubKeySize = 48 SignatureSize = 96 diff --git a/crypto/composite/composite.go b/crypto/composite/composite.go index 59da4b556..13ce0d40a 100644 --- a/crypto/composite/composite.go +++ b/crypto/composite/composite.go @@ -16,8 +16,8 @@ import ( // composite.PubKey and composite.PrivKey are intended to allow public key algorithms to be selected for each function. const ( - PubKeyName = "tendermint/PubKeyComposite" - PrivKeyName = "tendermint/PrivKeyComposite" + PubKeyName = "ostracon/PubKeyComposite" + PrivKeyName = "ostracon/PrivKeyComposite" KeyType = "composite" KeyTypeBlsWithEd25519 = KeyType + "(" + bls.KeyType + "," + ed25519.KeyType + ")" diff --git a/crypto/ed25519/ed25519.go b/crypto/ed25519/ed25519.go index f63c33682..ba9312250 100644 --- a/crypto/ed25519/ed25519.go +++ b/crypto/ed25519/ed25519.go @@ -19,8 +19,8 @@ import ( var _ crypto.PrivKey = PrivKey{} const ( - PrivKeyName = "tendermint/PrivKeyEd25519" - PubKeyName = "tendermint/PubKeyEd25519" + PrivKeyName = "ostracon/PrivKeyEd25519" + PubKeyName = "ostracon/PubKeyEd25519" // PubKeySize is is the size, in bytes, of public keys as used in this package. PubKeySize = 32 // PrivateKeySize is the size, in bytes, of private keys as used in this package. diff --git a/crypto/secp256k1/secp256k1.go b/crypto/secp256k1/secp256k1.go index 8493689ca..9c0a56176 100644 --- a/crypto/secp256k1/secp256k1.go +++ b/crypto/secp256k1/secp256k1.go @@ -17,8 +17,8 @@ import ( //------------------------------------- const ( - PrivKeyName = "tendermint/PrivKeySecp256k1" - PubKeyName = "tendermint/PubKeySecp256k1" + PrivKeyName = "ostracon/PrivKeySecp256k1" + PubKeyName = "ostracon/PubKeySecp256k1" KeyType = "secp256k1" PrivKeySize = 32 diff --git a/crypto/sr25519/encoding.go b/crypto/sr25519/encoding.go index e04975164..b55e11c9a 100644 --- a/crypto/sr25519/encoding.go +++ b/crypto/sr25519/encoding.go @@ -8,8 +8,8 @@ import ( var _ crypto.PrivKey = PrivKey{} const ( - PrivKeyName = "tendermint/PrivKeySr25519" - PubKeyName = "tendermint/PubKeySr25519" + PrivKeyName = "ostracon/PrivKeySr25519" + PubKeyName = "ostracon/PubKeySr25519" // SignatureSize is the size of an Edwards25519 signature. Namely the size of a compressed // Sr25519 point, and a field element. Both of which are 32 bytes. diff --git a/privval/file_test.go b/privval/file_test.go index 829ba9403..74f197598 100644 --- a/privval/file_test.go +++ b/privval/file_test.go @@ -160,11 +160,11 @@ func TestUnmarshalValidatorKey(t *testing.T) { serialized := fmt.Sprintf(`{ "address": "%s", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "%s" }, "priv_key": { - "type": "tendermint/PrivKeyEd25519", + "type": "ostracon/PrivKeyEd25519", "value": "%s" } }`, addr, pubB64, privB64) diff --git a/rpc/openapi/openapi.yaml b/rpc/openapi/openapi.yaml index 6d232d4a7..ceb5ee8bc 100644 --- a/rpc/openapi/openapi.yaml +++ b/rpc/openapi/openapi.yaml @@ -1200,7 +1200,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "A6DoBUypNtUAyEHWtQ9bFjfNg8Bo9CrnkUGl6k6OHN4=" @@ -1644,7 +1644,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM=" @@ -1803,7 +1803,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "cOQZvh/h9ZioSeUMZB/1Vy1Xo5x2sjrVjlE/qHnYifM=" @@ -1974,7 +1974,7 @@ components: - "value" properties: type: - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: "string" example: "VNMNfw7mrQBSpEvCtA9ykOe6BoR00RM9b/a9v3vXZhY=" @@ -2722,7 +2722,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM=" diff --git a/tools/tm-signer-harness/internal/test_harness_test.go b/tools/tm-signer-harness/internal/test_harness_test.go index 61ad16567..dc8005fde 100644 --- a/tools/tm-signer-harness/internal/test_harness_test.go +++ b/tools/tm-signer-harness/internal/test_harness_test.go @@ -21,11 +21,11 @@ const ( keyFileContents = `{ "address": "D08FCA3BA74CF17CBFC15E64F9505302BB0E2748", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "ZCsuTjaczEyon70nmKxwvwu+jqrbq5OH3yQjcK0SFxc=" }, "priv_key": { - "type": "tendermint/PrivKeyEd25519", + "type": "ostracon/PrivKeyEd25519", "value": "8O39AkQsoe1sBQwud/Kdul8lg8K9SFsql9aZvwXQSt1kKy5ONpzMTKifvSeYrHC/C76Oqturk4ffJCNwrRIXFw==" } }` @@ -61,7 +61,7 @@ const ( { "address": "D08FCA3BA74CF17CBFC15E64F9505302BB0E2748", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "ZCsuTjaczEyon70nmKxwvwu+jqrbq5OH3yQjcK0SFxc=" }, "power": "10", diff --git a/types/genesis_test.go b/types/genesis_test.go index 11fc49ddd..841486796 100644 --- a/types/genesis_test.go +++ b/types/genesis_test.go @@ -29,7 +29,7 @@ func TestGenesisBad(t *testing.T) { []byte( `{"validators":[` + `{"pub_key":{` + - `"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + + `"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + `},"power":"10","name":""}` + `]}`, ), @@ -37,7 +37,7 @@ func TestGenesisBad(t *testing.T) { []byte( `{"chain_id": "Lorem ipsum dolor sit amet, consectetuer adipiscing", "validators": [` + `{"pub_key":{` + - `"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + + `"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + `},"power":"10","name":""}` + `]}`, ), @@ -45,7 +45,7 @@ func TestGenesisBad(t *testing.T) { []byte( `{"chain_id":"mychain", "validators":[` + `{"address": "A", "pub_key":{` + - `"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + + `"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + `},"power":"10","name":""}` + `]}`, ), @@ -53,7 +53,7 @@ func TestGenesisBad(t *testing.T) { []byte( `{"chain_id":"mychain", "validators":[` + `{"pub_key":{` + - `"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + + `"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + `},"power":"10","name":""}], ` + `"voter_params":{"voter_election_threshold":"1"}` + `}`, @@ -75,7 +75,7 @@ func TestGenesisGood(t *testing.T) { "initial_height": "1000", "consensus_params": null, "validators": [{ - "pub_key":{"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="}, + "pub_key":{"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="}, "power":"10", "name":"" }],