home.social

#bigint — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bigint, aggregated by home.social.

  1. Pretty printing bigints in uxntal:

    The first two bytes of the struct are the length in bytes, not limbs!

    Limbs are 2 byte big-endian shorts, but limbs are stored in little-endian.

    In the image, the pretty printed result of:

    0xffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff + 1

    A=1 is a bigint of length 2 bytes (that is 1 limb long) AKA a boxed short, while B is 32 bytes/256-bits (16 limbs long).

    R is 17 limbs long.

    paste.sr.ht/~ismael-vc/3e39dec

    #uxn #bigint

Share on Mastodon

Enter the server where you have an account.