File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ cosmwasm_1_4 = ["cosmwasm_1_3"]
49
49
# This enables functionality that is only available on 2.0 chains.
50
50
# It adds `CosmosMsg::Any`, replacing `CosmosMsg::Stargate`. It also adds `QueryRequest::Grpc`.
51
51
cosmwasm_2_0 = [" cosmwasm_1_4" ]
52
+ # This enables functionality that is only available on 2.1 chains.
53
+ # It adds verification and key recovery for the secp256r1 elliptic curve.
54
+ cosmwasm_2_1 = [" cosmwasm_2_0" ]
52
55
53
56
[dependencies ]
54
57
base64 = " 0.21.0"
Original file line number Diff line number Diff line change @@ -62,8 +62,10 @@ extern "C" {
62
62
/// secp256r1 ECDSA parametrization.
63
63
/// Returns 0 on verification success, 1 on verification failure, and values
64
64
/// greater than 1 in case of error.
65
+ #[ cfg( feature = "cosmwasm_2_1" ) ]
65
66
fn secp256r1_verify ( message_hash_ptr : u32 , signature_ptr : u32 , public_key_ptr : u32 ) -> u32 ;
66
67
68
+ #[ cfg( feature = "cosmwasm_2_1" ) ]
67
69
fn secp256r1_recover_pubkey (
68
70
message_hash_ptr : u32 ,
69
71
signature_ptr : u32 ,
You can’t perform that action at this time.
0 commit comments