#holochain #holo #nacl #libsodium #cryptography


lib3h libsodium wrapper providing memory secure api access

36 releases

0.0.42 Mar 10, 2020
0.0.38 Feb 13, 2020
0.0.26 Dec 31, 2019
0.0.22 Nov 13, 2019
0.0.9 Jul 24, 2019

#618 in Cryptography

Download history 13/week @ 2021-07-05 18/week @ 2021-07-12 41/week @ 2021-07-19 49/week @ 2021-07-26 81/week @ 2021-08-02 15/week @ 2021-08-09 38/week @ 2021-08-16 16/week @ 2021-08-23 3/week @ 2021-08-30 7/week @ 2021-09-06 9/week @ 2021-09-13 5/week @ 2021-09-20 38/week @ 2021-09-27 6/week @ 2021-10-04 41/week @ 2021-10-11 6/week @ 2021-10-18

238 downloads per month
Used in less than 8 crates


3.5K SLoC


Project Chat

Twitter Follow

License: Apache-2.0


Lib3h libsodium wrapper providing memory secure api access.


extern crate holochain_sodium;
use holochain_sodium::{secbuf::SecBuf, sign::*};

fn main() {
    let mut seed = SecBuf::with_secure(32);

    let mut public_key = SecBuf::with_insecure(PUBLICKEYBYTES);
    let mut secret_key = SecBuf::with_secure(SECRETKEYBYTES);
    seed_keypair(&mut public_key, &mut secret_key, &mut seed).unwrap();

    let mut message = SecBuf::with_insecure(32);

    let mut signature = SecBuf::with_insecure(64);
    sign(&mut message, &mut secret_key, &mut signature).unwrap();

    assert!(verify(&mut signature, &mut message, &mut public_key));


Holochain is an open source project. We welcome all sorts of participation and are actively working on increasing surface area to accept it. Please see our contributing guidelines for our general practices and protocols on participating in the community.


License: Apache-2.0

Copyright (C) 2019, Holochain Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


~58K SLoC