github.com/suchongming/fabric@v2.1.1+incompatible/integration/nwo/commands/idemixgen.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package commands 8 9 type CAKeyGen struct { 10 Output string 11 } 12 13 func (c CAKeyGen) SessionName() string { 14 return "idemixgen-ca-key-gen" 15 } 16 17 func (c CAKeyGen) Args() []string { 18 return []string{ 19 "ca-keygen", 20 "--output", c.Output, 21 } 22 } 23 24 type SignerConfig struct { 25 CAInput string 26 Output string 27 OrgUnit string 28 Admin bool 29 EnrollmentID string 30 RevocationHandle string 31 } 32 33 func (c SignerConfig) SessionName() string { 34 return "idemixgen-signerconfig" 35 } 36 37 func (c SignerConfig) Args() []string { 38 return []string{ 39 "signerconfig", 40 "--ca-input", c.CAInput, 41 "--output", c.Output, 42 "--admin", 43 "-u", c.OrgUnit, 44 "-e", c.EnrollmentID, 45 "-r", c.RevocationHandle, 46 } 47 }