From b258282e7024d6257b999988a8053b4475a880de Mon Sep 17 00:00:00 2001 From: Muhammad Altabba Date: Tue, 13 Nov 2018 10:39:44 +0300 Subject: [PATCH] Automatically merged updates to draft EIP(s) 725 Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing --- EIPS/eip-725.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EIPS/eip-725.md b/EIPS/eip-725.md index 2cd34ddb..94d6f5a6 100644 --- a/EIPS/eip-725.md +++ b/EIPS/eip-725.md @@ -41,14 +41,14 @@ Keys are cryptographic public keys, or contract addresses associated with this i The structure should be as follows: - `key`: A public key owned by this identity - - `purpose`: `uint256[]` Array of the key types, like 1 = MANAGEMENT, 2 = ACTION, 3 = CLAIM, 4 = ENCRYPTION + - `purpose`: `uint256` The key purpose. e.g., 1 = MANAGEMENT, 2 = ACTION, 3 = CLAIM, 4 = ENCRYPTION - `keyType`: The type of key used, which would be a `uint256` for different key types. e.g. 1 = ECDSA, 2 = RSA, etc. - `key`: `bytes32` The public key. // for non-hex and long keys, its the Keccak256 hash of the key ```js struct Key { - uint256[] purposes; + uint256 purpose; uint256 keyType; bytes32 key; } @@ -59,7 +59,7 @@ struct Key { Returns the full key data, if present in the identity. ``` js -function getKey(bytes32 _key) constant returns(uint256[] purposes, uint256 keyType, bytes32 key); +function getKey(bytes32 _key) constant returns(uint256 purpose, uint256 keyType, bytes32 key); ``` #### keyHasPurpose @@ -280,7 +280,7 @@ contract ERC725 { bytes32 key; } - function getKey(bytes32 _key) public constant returns(uint256[] purposes, uint256 keyType, bytes32 key); + function getKey(bytes32 _key) public constant returns(uint256 purpose, uint256 keyType, bytes32 key); function keyHasPurpose(bytes32 _key, uint256 _purpose) public constant returns (bool exists); function getKeysByPurpose(uint256 _purpose) public constant returns (bytes32[] keys); function addKey(bytes32 _key, uint256 _purpose, uint256 _keyType) public returns (bool success);