mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Allow channel_authorize to use Ed25519 keys
This commit is contained in:
committed by
Manoj doshi
parent
a3a9dc26b4
commit
113167acf4
@@ -2222,10 +2222,11 @@ static RPCCallTestData const rpcCallTestArray [] =
|
||||
"channel_authorize: too many arguments.", __LINE__,
|
||||
{
|
||||
"channel_authorize",
|
||||
"secret_can_be_anything",
|
||||
"secp256k1",
|
||||
"0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
|
||||
"2000",
|
||||
"whatever"
|
||||
"whatever",
|
||||
"whenever"
|
||||
},
|
||||
RPCCallTestData::no_exception,
|
||||
R"({
|
||||
@@ -2239,6 +2240,27 @@ static RPCCallTestData const rpcCallTestArray [] =
|
||||
]
|
||||
})"
|
||||
},
|
||||
{
|
||||
"channel_authorize: bad key type.", __LINE__,
|
||||
{
|
||||
"channel_authorize",
|
||||
"secp257k1",
|
||||
"0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
|
||||
"2000",
|
||||
"whatever"
|
||||
},
|
||||
RPCCallTestData::no_exception,
|
||||
R"({
|
||||
"method" : "channel_authorize",
|
||||
"params" : [
|
||||
{
|
||||
"error" : "badKeyType",
|
||||
"error_code" : 1,
|
||||
"error_message" : "Bad key type."
|
||||
}
|
||||
]
|
||||
})"
|
||||
},
|
||||
{
|
||||
"channel_authorize: channel_id too short.", __LINE__,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user