Skip to content

Identity Profiles

Identity Profiles allow users to hide their Genesis Identifier during interactions. Instead, users will be identified by their Identity Profile.

An Identity Profile is generated by hashing the id with a profile_nonce. This is a random number that is generated by the identity owner.

package main

import (
    "fmt"
    "math/big"

    core "github.com/iden3/go-iden3-core"
)

// Generate Identity Profile from Genesis Identifier
func main() {

    id, _ := core.IDFromString("11BBCPZ6Zq9HX1JhHrHT3QKUFD9kFDEyJFoAVMptVs")

    profile, _ := core.ProfileID(id, big.NewInt(50))

    fmt.Println(profile.String())

}