代码拉取完成,页面将自动刷新
/*
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。