Skip to content
This repository has been archived by the owner on Aug 18, 2018. It is now read-only.

civicledger/blockchain-permits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Blockchain Permits

Civic Ledger have defined a standard for permits and licences that can be granted via the Ethereum blockchains

Terminology

Issuer: The body in charge of granting entitlments. Grant: The process of Transfer Redeem Revoke Reclaim

Permit types

Basic

Name
Type
Issuer
Terms URL (Should be SSL)
Icon URL
Start Time
Duration (How long the voucher is valid for.  0 means does not expire)
Transferable (Boolean)
Version

An example of a permit in solidity

    struct permit {
        address issuer;
        string type;
        string terms;
        uint256 value;
        uint256 start;
        uint256 end;
    }
    
    function grant()
    {
        if (msg.sender != issuer) throw;
        
    }

C# DTO for a permit

public class Permit
{
  public String Type { get; set; }
}

www.civicledger.com

About

Interfaces and smart contracts for civc permits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published