File tree Expand file tree Collapse file tree 3 files changed +28
-9
lines changed Expand file tree Collapse file tree 3 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -140,12 +140,6 @@ func (b *BabbageBlock) Utxorpc() *utxorpc.Block {
140
140
return block
141
141
}
142
142
143
- type BabbageBlockHeaderVrfResult struct {
144
- cbor.StructAsArray
145
- Output []byte
146
- Proof []byte
147
- }
148
-
149
143
type BabbageBlockHeader struct {
150
144
cbor.StructAsArray
151
145
cbor.DecodeStoreCbor
@@ -157,7 +151,7 @@ type BabbageBlockHeader struct {
157
151
PrevHash common.Blake2b256
158
152
IssuerVkey common.IssuerVkey
159
153
VrfKey []byte
160
- VrfResult BabbageBlockHeaderVrfResult
154
+ VrfResult common. VrfResult
161
155
BlockBodySize uint64
162
156
BlockBodyHash common.Blake2b256
163
157
OpCert struct {
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 Blink Labs Software
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ package common
16
+
17
+ import (
18
+ "github.com/blinklabs-io/gouroboros/cbor"
19
+ )
20
+
21
+ type VrfResult struct {
22
+ cbor.StructAsArray
23
+ Output []byte
24
+ Proof []byte
25
+ }
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ type ShelleyBlockHeader struct {
140
140
PrevHash common.Blake2b256
141
141
IssuerVkey common.IssuerVkey
142
142
VrfKey []byte
143
- NonceVrf interface {}
144
- LeaderVrf interface {}
143
+ NonceVrf common. VrfResult
144
+ LeaderVrf common. VrfResult
145
145
BlockBodySize uint64
146
146
BlockBodyHash common.Blake2b256
147
147
OpCertHotVkey []byte
You can’t perform that action at this time.
0 commit comments