github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/bccsp/factory/opts.go (about) 1 /* 2 Copyright hechain. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package factory 8 9 // GetDefaultOpts offers a default implementation for Opts 10 // returns a new instance every time 11 func GetDefaultOpts() *FactoryOpts { 12 return &FactoryOpts{ 13 Default: "SW", 14 SW: &SwOpts{ 15 Hash: "SHA2", 16 Security: 256, 17 }, 18 } 19 } 20 21 // FactoryName returns the name of the provider 22 func (o *FactoryOpts) FactoryName() string { 23 return o.Default 24 }