Compare commits

...

4 Commits
v0.0.8 ... main

Author SHA1 Message Date
Richard Ramos
eb630fcf3b
chore: change project org 2022-10-27 09:06:04 -04:00
Richard Ramos
0b11737b65 chore: removing unneeded architectures 2022-08-18 14:10:00 -04:00
Richard Ramos
af16918a8d fix: add ios libs 2022-08-18 13:48:45 -04:00
Richard Ramos
e8bc51f653
refactor: change types 2022-08-11 18:12:16 -04:00
11 changed files with 8 additions and 12 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/status-im/go-rln
module github.com/waku-org/go-rln
go 1.17

Binary file not shown.

BIN
libs/universal/librln.a Normal file

Binary file not shown.

View File

@ -11,10 +11,6 @@ package rln
#cgo linux,amd64,musl,!android LDFLAGS:-L${SRCDIR}/../libs/x86_64-unknown-linux-musl
#cgo linux,amd64,!musl,!android LDFLAGS:-L${SRCDIR}/../libs/x86_64-unknown-linux-gnu
#cgo linux,386 LDFLAGS:-L${SRCDIR}/../libs/i686-unknown-linux-gnu
#cgo linux,mips LDFLAGS:-L${SRCDIR}/../libs/mips-unknown-linux-gnu
#cgo linux,mips64 LDFLAGS:-L${SRCDIR}/../libs/mips64-unknown-linux-gnuabi64
#cgo linux,mips64le LDFLAGS:-L${SRCDIR}/../libs/mips64el-unknown-linux-gnuabi64
#cgo linux,mipsle LDFLAGS:-L${SRCDIR}/../libs/mipsel-unknown-linux-gnu
#cgo windows,386 LDFLAGS:-L${SRCDIR}/../libs/i686-pc-windows-gnu -lrln -lm -lws2_32 -luserenv
#cgo windows,amd64 LDFLAGS:-L${SRCDIR}/../libs/x86_64-pc-windows-gnu -lrln -lm -lws2_32 -luserenv
#cgo darwin,386,!ios LDFLAGS:-L${SRCDIR}/../libs/i686-apple-darwin

View File

@ -7,21 +7,21 @@ import (
)
// IDKey is an identity key as defined in https://hackmd.io/tMTLMYmTR5eynw2lwK9n1w?view#Membership
type IDKey [32]byte
type IDKey = [32]byte
// IDCommintment is hash of identity key as defined in https://hackmd.io/tMTLMYmTR5eynw2lwK9n1w?view#Membership
type IDCommitment [32]byte
type IDCommitment = [32]byte
// Each node of the Merkle tee is a Poseidon hash which is a 32 byte value
type MerkleNode [32]byte
type MerkleNode = [32]byte
type Nullifier [32]byte
type Nullifier = [32]byte
type ZKSNARK [256]byte
type ZKSNARK = [256]byte
// Custom data types defined for waku rln relay -------------------------
type MembershipKeyPair struct {
type MembershipKeyPair = struct {
// user's identity key (a secret key) which is selected randomly
// see details in https://hackmd.io/tMTLMYmTR5eynw2lwK9n1w?view#Membership
IDKey IDKey
@ -50,7 +50,7 @@ type RateLimitProof struct {
Nullifier Nullifier
}
type MembershipIndex uint
type MembershipIndex = uint
type ProofMetadata struct {
Nullifier Nullifier