You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/fabric-shim/lib/utils/statebased.js
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ const ROLE_TYPE_PEER = 'PEER';
17
17
* of the MSP identifiers of organizations.
18
18
* For more informations, please read the [documents]{@link https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html#setting-key-level-endorsement-policies}
19
19
*
20
-
* @class
20
+
* @class KeyEndorsementPolicy
21
+
* @memberof fabric-shim
21
22
*/
22
23
classKeyEndorsementPolicy{
23
24
/**
@@ -35,7 +36,7 @@ class KeyEndorsementPolicy {
35
36
36
37
/**
37
38
* returns the endorsement policy as bytes
38
-
* @returns {Buffer} the endorsement policy
39
+
* @returns {Uint8Array} the serialized signature policy envelope
39
40
*/
40
41
getPolicy(){
41
42
constspe=this._getPolicyFromMspId();
@@ -45,7 +46,7 @@ class KeyEndorsementPolicy {
45
46
/**
46
47
* adds the specified orgs to the list of orgs that are required
47
48
* to endorse
48
-
* @param {string} role the role of the new org(s). i.e., MEMBER or PEER
49
+
* @param {string} role the role of the new org(s). i.e., 'MEMBER' or 'PEER'
49
50
* @param {...string} neworgs the new org(s) to be added to the endorsement policy
0 commit comments