(blob []byte)
| 275 | } |
| 276 | |
| 277 | func DecodeBlob(blob []byte) []byte { |
| 278 | if len(blob) != params.BlobTxFieldElementsPerBlob*32 { |
| 279 | panic("Invalid blob encoding") |
| 280 | } |
| 281 | var data []byte |
| 282 | |
| 283 | j := 0 |
| 284 | for i := 0; i < params.BlobTxFieldElementsPerBlob; i++ { |
| 285 | data = append(data, blob[j+1:j+32]...) |
| 286 | j += 32 |
| 287 | } |
| 288 | |
| 289 | return data |
| 290 | } |
| 291 | |
| 292 | func DecodeUint256String(hexOrDecimal string) (*uint256.Int, error) { |
| 293 | var base = 10 |
no outgoing calls