mirror of
https://github.com/logos-messaging/go-zerokit-rln.git
synced 2026-01-05 22:53:09 +00:00
Use MerkleNode instead [32]byte
Co-authored-by: richΛrd <info@richardramos.me>
This commit is contained in:
parent
13fead4a16
commit
c07683058f
@ -427,7 +427,7 @@ func (r *RLN) InsertMember(idComm IDCommitment, userMessageLimit uint32) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RLN) InsertRawLeaf(rawLeaf [32]byte) error {
|
func (r *RLN) InsertRawLeaf(rawLeaf MerkleNode) error {
|
||||||
insertionSuccess := r.w.SetNextLeaf(rawLeaf[:])
|
insertionSuccess := r.w.SetNextLeaf(rawLeaf[:])
|
||||||
if !insertionSuccess {
|
if !insertionSuccess {
|
||||||
return errors.New("could not insert raw leaf")
|
return errors.New("could not insert raw leaf")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user