Skip to content

Commit 63035a1

Browse files
committed
fix: keys sign_as_user header
1 parent d6a48ed commit 63035a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/session/config/groups/keys.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class Keys : public ConfigSig {
491491
std::span<const unsigned char> signing_value,
492492
bool binary = false) const;
493493

494-
static Keys::swarm_auth swarm_subaccount_sign_as_user(
494+
static swarm_auth swarm_subaccount_sign_as_user(
495495
std::span<const unsigned char> user_ed25519_sk,
496496
std::span<const unsigned char> msg,
497497
std::span<const unsigned char> sign_val,

src/config/groups/keys.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,8 @@ Keys::swarm_auth Keys::swarm_subaccount_sign(
779779
std::span<const unsigned char> sign_val,
780780
bool binary) const {
781781
auto user_ed25519_sk_buf = this->user_ed25519_sk.data();
782-
return Keys::swarm_subaccount_sign_as_user(user_ed25519_sk_buf, msg, sign_val, binary);
782+
783+
return Keys::swarm_subaccount_sign_as_user(to_span(user_ed25519_sk_buf), msg, sign_val, binary);
783784
}
784785

785786
bool Keys::swarm_verify_subaccount(

0 commit comments

Comments
 (0)