|
From: Pelle B. <pe...@ne...> - 2004-06-02 20:07:53
|
I have created a tool for creating NeuClear Asset Rules files. Currently it's mainly for technically oriented people. You can download it at: http://dev.neuclear.org/maven/neuclear-pay/jars/assetrulecreator-1.0-beta4.jar Two use it you essentially need 3 rsa keypairs generated before you start: - Issuer Key the key of the person issuing funds into circulation - Service Key The that will sign all receipts for the asset - Promoter Key The key that sings the rules The service key will need to be online on the asset controller. The issuer key will in some applications be online and in others no. The Promoter's Key should be stored offline in a secure place, in almost all applications anyway. Lets say for the sake of simplicity you have a keystore file with your issuer and service key. Here is an example where you run the jar file above with the following parameters: java -jar assetrulecreator-1.0-beta4.jar -k assetkeys.jks -n MyAsset -r http://myasset.com/rules.html -s operator --issueralias issuer -x http://myasset.com/Asset -u $ -o rules.html This creates an unsigned file rules.html, which you can manually edit and stylize. Just remember to not mess with the id attributes. Once you are happy with how it looks. Sign it with your Personal Trader app using your promoter key. Alternatively for development purposes you could just create a promoter keypair in the same keystore and add a "-n promoter" to the above line. This is not very well tested and I would appreciate feedback. The source is in: neuclear-pay/src/java/org/neuclear/asset/contracts/builders/GenerateRulesTemplate.java -- http://talk.org + Live and direct from Panama http://neuclear.org + The World Wide Web of Assets |