Skip to content

Instantly share code, notes, and snippets.

View DOBEN's full-sized avatar

Doris Benda DOBEN

View GitHub Profile

Using Concordium multi-sig accounts

This is a guide for converting an existing account on Concordium into a multi-sig account and using it to send multi-sig transactions to contracts via scripts.

Converting an existing account on Concordium into a multi-sig account

  • Export two account key files A and B from the browser wallet. This would be done by two independent people A and B.

Checkout the guide Concordium Wallet for Web on how to export key files:

{
"name": "CIS2Token",
"symbol": "TOK",
"decimals": 0,
"description": "CIS2Token is an example of a stablecoin.",
"thumbnail": { "url": "https://dev.euroe.com/persistent/token-icon/png/32x32.png" },
"display": { "url": "https://dev.euroe.com/persistent/token-icon/png/256x256.png" },
"artifact": { "url": "https://dev.euroe.com/persistent/token-icon/png/256x256.png" },
"unique": false
}
{
"name": "Education certificate",
"description": "Simple representation of an education certificate.",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
"id": {
"title": "Credential subject id",
{
"$id": "https://example-university.com/certificates/JsonSchema2023-education-certificate.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "Education certificate",
"description": "Simple representation of an education certificate.",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
{
"name": "Education certificate",
"description": "Simple representation of an education certificate.",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example-university.com/certificates/JsonSchema2023-education-certificate.json",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
{
"$id": "https://example-university.com/certificates/JsonSchema2023-education-certificate.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "Education certificate",
"description": "Simple representation of an education certificate.",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
{
"title": "Example Title",
"logo": {
"url": "https://avatars.githubusercontent.com/u/39614219?s=200&v=4"
}, "backgroundColor": "#FFBF00"
}
{
"name": "Concordium",
"icon" : {
"url": "https://concordium.com/wp-content/uploads/2022/07/Concordium-1.png",
"hash": "1c74f7eb1b3343a5834e60e9a8fce277f2c7553112accd42e63fae7a09e0caf8"
},
"description": "A public-layer 1, science-backed blockchain",
"url": "https://concordium.com"
}
{
"$id": "https://example-university.com/certificates/JsonSchema2023-education-certificate.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "Education certificate",
"description": "Simple representation of an education certificate.",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
{
"title": "Example Title",
"logo": {
"url": "https://avatars.githubusercontent.com/u/39614219?s=200&v=4"
}, "background_color": "#FFBF00"
}