trustoverip / tswg-tsp-specification

Trust Spanning Protocol Specification
https://trustoverip.github.io/tswg-tsp-specification/
Other
3 stars 1 forks source link

Mixing programming paradigms in libsodium sealed box examples #33

Open daidoji opened 2 months ago

daidoji commented 2 months ago

In section https://trustoverip.github.io/tswg-tsp-specification/#tsp-use-of-sealed-box-for-pkae we have two C function headers taken from the libsodium documentation, then some pseudo-code that seems to be mixing python indentation with the use of references from the C code. Python doesn't have the & operator for variable addresses (nor does psuedo-code usually) and this is probably confusing. I think I understand the intent of the code so I might try and push a PR for this but wanted to note this issue in case I forget.