stellar / rs-soroban-sdk

Rust SDK for Soroban contracts.
Apache License 2.0
123 stars 67 forks source link

Put crypto hazmat behind a feature #1274

Closed leighmcculloch closed 5 months ago

leighmcculloch commented 5 months ago

What

Add a new feature, hazmat, that is required to use the crypto hazmat capabilities.

Why

The crypto hazmat capabilities are intended for use by folks who really need it and know what they're doing with lower level crypto primitives. There's not much in there right now but it'll likely expand over time. Most devs won't need it. There are warnings in the docs, but one additional layer or barrier so that someone can't accidentally include a call to hazmat without something else being done that's very visible, like enabling a feature, might as @graydon put it, prevent something sad happening.