zk_kyc

package
v0.2.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KYCData

type KYCData struct {
	MerchantID   string   `json:"merchant_id"`
	Balance      *big.Int `json:"balance"`
	KYCLevel     int      `json:"kyc_level"`
	VerifiedAt   int64    `json:"verified_at"`
	ExpiresAt    int64    `json:"expires_at"`
	DocumentHash string   `json:"document_hash"`
	CountryCode  string   `json:"country_code"`
	BusinessType string   `json:"business_type"`
	RiskScore    int      `json:"risk_score"`
}

KYCData represents the KYC information for a merchant

type KYCVerifier

type KYCVerifier struct {
	// contains filtered or unexported fields
}

KYCVerifier handles KYC verification using zero-knowledge proofs

func NewKYCVerifier

func NewKYCVerifier() (*KYCVerifier, error)

NewKYCVerifier creates a new KYC verifier

func (*KYCVerifier) AddMerchant

func (v *KYCVerifier) AddMerchant(data *KYCData) error

AddMerchant adds a merchant to the KYC registry

func (*KYCVerifier) GenerateProof

func (v *KYCVerifier) GenerateProof(merchantID string) ([]byte, error)

GenerateProof generates a zero-knowledge proof for KYC verification

func (*KYCVerifier) VerifyProof

func (v *KYCVerifier) VerifyProof(proof []byte, minBalance *big.Int) (bool, error)

VerifyProof verifies a KYC proof

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL