public final class RadixUniverse
extends java.lang.Object
The configuration file of a Radix Universe defines the genesis atoms of the distributed ledger and distinguishes this universe from other universes. (e.g. Public net vs Test net) It is shared amongst all participants of this instance of the Radix getNetwork.
The network interface is available to directly connect with Node Runners in the Radix Network in order to read/write atoms on the distributed ledger.
The ledger interface is a thin wrapper on the network interface which provides an abstraction which doesn't require managing network peers. It can for example be used to cache atoms locally.
Modifier and Type | Method and Description |
---|---|
static RadixUniverse |
create(BootstrapConfig bootstrapConfig) |
static RadixUniverse |
create(RadixUniverseConfig config,
java.util.List<RadixNetworkEpic> discoveryEpics,
java.util.Set<RadixNode> initialNetwork)
Creates a universe with peer discovery through epics
|
static RadixUniverse |
create(RadixUniverseConfig config,
io.reactivex.Observable<RadixNode> seeds,
java.util.Set<RadixNode> initialNetwork)
Creates a universe with peer discovery through seed nodes
|
RadixAddress |
getAddressFrom(ECPublicKey publicKey)
Maps a public key to it's corresponding Radix address in this universe.
|
AtomPuller |
getAtomPuller() |
AtomStore |
getAtomStore() |
RadixUniverseConfig |
getConfig() |
int |
getMagic() |
RRI |
getNativeToken() |
RadixNetworkController |
getNetworkController() |
ECPublicKey |
getSystemPublicKey()
Returns the system public key, also defined as the creator of this Universe
|
public static RadixUniverse create(RadixUniverseConfig config, io.reactivex.Observable<RadixNode> seeds, java.util.Set<RadixNode> initialNetwork)
seeds
- The seed nodespublic static RadixUniverse create(RadixUniverseConfig config, java.util.List<RadixNetworkEpic> discoveryEpics, java.util.Set<RadixNode> initialNetwork)
discoveryEpics
- epics which are responsible for peer discoverypublic static RadixUniverse create(BootstrapConfig bootstrapConfig)
public RadixNetworkController getNetworkController()
public RRI getNativeToken()
public int getMagic()
public AtomPuller getAtomPuller()
public AtomStore getAtomStore()
public ECPublicKey getSystemPublicKey()
public RadixAddress getAddressFrom(ECPublicKey publicKey)
publicKey
- the key to get an address frompublic RadixUniverseConfig getConfig()