Skip to content

Commit 44e9677

Browse files
committed
fix: group encrypt/decrypt
1 parent d8fb4cc commit 44e9677

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/encrypt_decrypt/encrypt_decrypt.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,10 @@ Napi::Value MultiEncryptWrapper::decryptForGroup(const Napi::CallbackInfo& info)
815815
std::span<std::span<const unsigned char>> groupEncKeys(span_group_enc_keys);
816816

817817
keys.decrypt_keys = groupEncKeys;
818+
// remove prefix
819+
std::vector<uint8_t> groupPkNoPrefix(groupPk.begin() + 1, groupPk.end());
820+
821+
keys.group_ed25519_pubkey = groupPkNoPrefix;
818822

819823
for (uint32_t i = 0; i < first.Length(); i++) {
820824
auto itemValue = first.Get(i);

0 commit comments

Comments
 (0)