ssbc / ssb-private-group-keys

GNU Lesser General Public License v3.0
2 stars 0 forks source link

allow constructing SecretKey from buffer #15

Closed staltz closed 2 years ago

staltz commented 2 years ago

Context: I need to fetch the group subfeed, but the group subfeed has the secret key bytes as the feedpurpose. What I have is the groupId, and from that I can fetch (from keyring) the secret key bytes, but then I need to create a SecretKey class instance.

Asking for a review from whoever sees this first.

staltz commented 2 years ago

Also @Powersource

staltz commented 2 years ago

Done

staltz commented 2 years ago

I ran tests actually, and they passed. Unfortunately there were no tests for SecretKey, and I didn't add any new tests. But I'm in a hurry.