Skip to content

dev-resources/light-kyc-identity-report

 
 

Repository files navigation

Light KYC Identity Report - EOSIO Smart Contracts

Deployed on Jungle Testnet

ACTION

TABLE

ACTION tier

Add metadata for tier

  • Authority: get_self()

params

  • {uint8_t} tier - identity tier
  • {name} name - identity tier name
  • {string} metadata - identity tier metadata

example

cleos push action identity tier '[1, "standard", "Standard Tier"]' -p identity

ACTION add

Add identity report to the smart contract table

  • Authority: get_self()

params

  • {name} account - identity account name
  • {public_key} key - public key that was used to sign the proof of identity
  • {uint8_t} tier - identity tier assosiated with identity report
  • {string} metadata - additional metadata about report

example

cleos push action identity add '["myaccount", "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV", 1, "Additional Metadata"]' -p identity

ACTION remove

Remove identity report from the smart contract table

  • Authority: get_self()

params

  • {name} account - identity account name

example

cleos push action identity remove '["myaccount"]' -p identity

TABLE identity

params

  • {name} name - identity account name
  • {public_key} key - public key that was used to sign the proof of identity
  • {uint8_t} tier - identity tier assosiated with identity report
  • {string} metadata - additional metadata about report
  • {checksum256} trx_id - identity creation transaction id
  • {time_point_sec} timestamp - identity creation timestamp

example

{
  "name": "myaccount",
  "key": "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
  "tier": 1,
  "metadata": "Additional Metadata",
  "trx_id": "f0889d11501fc83ff52d8af62e2d1552193c728e874d9bb559f30a0012deee3e",
  "timestamp": "2019-09-09T00:00:00"
}

TABLE tier

params

  • {uint8_t} tier - identity tier
  • {name} name - identity tier name
  • {string} metadata - identity tier metadata

example

{
  "tier": 1,
  "name": "standard",
  "metadata": "Standard Tier"
}

Packages

No packages published

Languages

  • C++ 81.7%
  • Shell 18.3%