Skip to content

app/integration/SR25519ProviderFactory.hpp

More...

Classes

Name
class SR25519ProviderFactory

Detailed Description

Date: 2024-02-28 Henrique A. Klein ([email protected])

Source code

#ifndef _SR25519_PROVIDER_FACTORY_HPP_
#define _SR25519_PROVIDER_FACTORY_HPP_

#include "crypto/sr25519/sr25519_provider_impl.hpp"
#include "crypto/random_generator/boost_generator.hpp"

class SR25519ProviderFactory
{
public:
static std::shared_ptr<sgns::crypto::SR25519Provider> create()
{
    return std::make_shared<sgns::crypto::SR25519ProviderImpl>(std::make_shared<sgns::crypto::BoostRandomGenerator>());
}
};

#endif

Updated on 2026-03-04 at 13:10:44 -0800