Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePublicScoreHash ¶
Types ¶
type CreditScoreRecord ¶
type CreditScoreRecord struct { Reason string Score int // leave empty for encryption Nonce string // leave empty for encryption ScoreHash []byte }
Decrypted CreditScoreRecord
func (*CreditScoreRecord) Encrypt ¶
func (c *CreditScoreRecord) Encrypt(publicKeyHex string) (*EncryptedCreditScoreRecord, error)
Encrypt encrypts a credit score record using the given public key.
type EncryptedCreditScoreRecord ¶
EncrytedCreditScoreRecord is the encrypted credit score record.
func (*EncryptedCreditScoreRecord) Decrypt ¶
func (e *EncryptedCreditScoreRecord) Decrypt(privateKeyHex string) (*CreditScoreRecord, error)
Decrypt decrypts a credit score record using the given private key.
Click to show internal directories.
Click to hide internal directories.