Use MerkleNode instead [32]byte

Co-authored-by: richΛrd <info@richardramos.me>
This commit is contained in:
Alvaro Revuelta 2024-05-31 07:07:46 +02:00 committed by GitHub
parent 13fead4a16
commit c07683058f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -427,7 +427,7 @@ func (r *RLN) InsertMember(idComm IDCommitment, userMessageLimit uint32) error {
return nil
}
func (r *RLN) InsertRawLeaf(rawLeaf [32]byte) error {
func (r *RLN) InsertRawLeaf(rawLeaf MerkleNode) error {
insertionSuccess := r.w.SetNextLeaf(rawLeaf[:])
if !insertionSuccess {
return errors.New("could not insert raw leaf")