All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.brewchain.sdk.util.LocalCrypto Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package org.brewchain.sdk.util;

import org.brewchain.sdk.model.ICrypto;

public class LocalCrypto implements ICrypto {
    
    private static LocalCrypto instance;
    
    static{
        instance = new LocalCrypto();
    }
    
    public static LocalCrypto getInstance(){
        return instance;
    }

    private LocalCrypto() {
    }

    @Override
    public byte[] sign(String privateKey, byte[] body) {

        return CryptoUtil.sign(privateKey, body);
        
    }

    public static void main(String[] args) {
        LocalCrypto.getInstance().sign("1111111111111111111111111111111111111111111111111111111111111111",new byte[]{1});
        
        
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy