@@ -16,13 +16,9 @@ export class Bytes64Error extends Data.TaggedError("Bytes64Error")<{
1616 */
1717export const BYTES_LENGTH = 64
1818
19- export const BytesSchema = Schema . Uint8ArrayFromSelf . pipe (
20- Bytes . bytesLengthEquals ( BYTES_LENGTH )
21- )
19+ export const BytesSchema = Schema . Uint8ArrayFromSelf . pipe ( Bytes . bytesLengthEquals ( BYTES_LENGTH ) )
2220
23- export const HexSchema = Bytes . HexSchema . pipe (
24- Bytes . hexLengthEquals ( BYTES_LENGTH )
25- )
21+ export const HexSchema = Bytes . HexSchema . pipe ( Bytes . hexLengthEquals ( BYTES_LENGTH ) )
2622
2723export const FromHex = Bytes . makeBytesTransformation ( {
2824 id : `Bytes${ BYTES_LENGTH } .Bytes${ BYTES_LENGTH } FromHex` ,
@@ -32,9 +28,7 @@ export const FromHex = Bytes.makeBytesTransformation({
3228 encode : Bytes . toHexUnsafe
3329} )
3430
35- export const VariableBytes = Schema . Uint8ArrayFromSelf . pipe (
36- Bytes . bytesLengthBetween ( 0 , BYTES_LENGTH )
37- )
31+ export const VariableBytes = Schema . Uint8ArrayFromSelf . pipe ( Bytes . bytesLengthBetween ( 0 , BYTES_LENGTH ) )
3832
3933/**
4034 * Schema transformation for variable-length bytes (0..BYTES_LENGTH).
@@ -44,9 +38,7 @@ export const VariableBytes = Schema.Uint8ArrayFromSelf.pipe(
4438 */
4539export const VariableBytesFromHex = Bytes . makeBytesTransformation ( {
4640 id : `Bytes${ BYTES_LENGTH } .VariableBytes${ BYTES_LENGTH } FromHex` ,
47- stringSchema : Bytes . HexLenientSchema . pipe (
48- Bytes . hexLengthBetween ( 0 , BYTES_LENGTH )
49- ) ,
41+ stringSchema : Bytes . HexLenientSchema . pipe ( Bytes . hexLengthBetween ( 0 , BYTES_LENGTH ) ) ,
5042 uint8ArraySchema : VariableBytes ,
5143 decode : Bytes . fromHexLenient ,
5244 encode : Bytes . toHexLenientUnsafe
0 commit comments