mirror of
https://github.com/luxfi/securities.git
synced 2026-10-30 15:17:20 +00:00
26 lines
630 B
Go
26 lines
630 B
Go
package onchainid
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/luxfi/geth/common"
|
|
)
|
|
|
|
// ClaimIssuer wraps the ClaimIssuer contract — used by KYC/AML providers to
|
|
// sign claims attached to investor Identities.
|
|
type ClaimIssuer struct {
|
|
Address common.Address
|
|
client Client
|
|
}
|
|
|
|
// NewClaimIssuer binds to an existing ClaimIssuer at addr.
|
|
func NewClaimIssuer(client Client, addr common.Address) (*ClaimIssuer, error) {
|
|
if client == nil {
|
|
return nil, errors.New("onchainid: nil client")
|
|
}
|
|
if addr == (common.Address{}) {
|
|
return nil, errors.New("onchainid: zero address")
|
|
}
|
|
return &ClaimIssuer{Address: addr, client: client}, nil
|
|
}
|