Skip to content
Light KYC Identity Report - EOSIO Smart Contract
C++ Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
include/identity
resource
src
.gitignore
LICENSE
README.md
build.sh
deploy.sh
eosc-vault.json
package.json
test.sh

README.md

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"
}
You can’t perform that action at this time.