1 Star 0 Fork 0

麦当/fabric-ca

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RevocationAuthority.go 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
// Code generated by mockery v1.0.0
package mocks
import FP256BN "github.com/hyperledger/fabric-amcl/amcl/FP256BN"
import ecdsa "crypto/ecdsa"
import idemix "github.com/hyperledger/fabric/idemix"
import mock "github.com/stretchr/testify/mock"
// RevocationAuthority is an autogenerated mock type for the RevocationAuthority type
type RevocationAuthority struct {
mock.Mock
}
// CreateCRI provides a mock function with given fields:
func (_m *RevocationAuthority) CreateCRI() (*idemix.CredentialRevocationInformation, error) {
ret := _m.Called()
var r0 *idemix.CredentialRevocationInformation
if rf, ok := ret.Get(0).(func() *idemix.CredentialRevocationInformation); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*idemix.CredentialRevocationInformation)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Epoch provides a mock function with given fields:
func (_m *RevocationAuthority) Epoch() (int, error) {
ret := _m.Called()
var r0 int
if rf, ok := ret.Get(0).(func() int); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(int)
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetNewRevocationHandle provides a mock function with given fields:
func (_m *RevocationAuthority) GetNewRevocationHandle() (*FP256BN.BIG, error) {
ret := _m.Called()
var r0 *FP256BN.BIG
if rf, ok := ret.Get(0).(func() *FP256BN.BIG); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*FP256BN.BIG)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// PublicKey provides a mock function with given fields:
func (_m *RevocationAuthority) PublicKey() *ecdsa.PublicKey {
ret := _m.Called()
var r0 *ecdsa.PublicKey
if rf, ok := ret.Get(0).(func() *ecdsa.PublicKey); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ecdsa.PublicKey)
}
}
return r0
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Mydawng/fabric-ca.git
git@gitee.com:Mydawng/fabric-ca.git
Mydawng
fabric-ca
fabric-ca
v1.3.0

搜索帮助