Allow channel_authorize to use Ed25519 keys

This commit is contained in:
Nik Bougalis
2019-10-16 00:43:02 -07:00
committed by Manoj doshi
parent a3a9dc26b4
commit 113167acf4
6 changed files with 196 additions and 12 deletions

View File

@@ -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__,
{