Skip to content

Instantly share code, notes, and snippets.

View molekilla's full-sized avatar

Rogelio Morrell molekilla

  • Panama
View GitHub Profile
@molekilla
molekilla / example.ts
Last active June 9, 2022 13:04
beeson schema builder
import { DnaManager, BeeSon, Type } from '../../src'
import { encodeFeedReference, encodeManifestReference } from '@ethersphere/swarm-cid'
import { SwarmFeedCid, SwarmManifestCid } from '../../src/marshalling/address-serializer'
import { randomByteArray } from './utils'
class SchemaBuilder {
use crate::sdk::focused_transform_patch_str;
use crate::sdk::read_dag;
use crate::sdk::submit_proof;
use crate::sdk::{generate_proof, get_proof, read_dag_block, write_dag_block};
use juniper::FieldResult;
extern crate juniper;
use juniper::{
graphql_object, EmptyMutation, EmptySubscription, FieldError, GraphQLEnum, GraphQLValue,

LEY DE FIRMA ELECTRONICA

  • 31 de oct encontramos un software de autoridad certificadora que emite curvas elípticas
  • 2 de nov, junto con Edgar, se envió email a la dir. De firma electronica con la premisa de que se mapeaban las curvas elípticas con los decretos relacionados a la firma electronica
  • El 2 de nov se converso con Osvaldo y se nos indico que nos responderían
  • El 3 de nov exponiéndole a Edgar el negocio de certificadoras, se descubrio que habia una relacion entre la ley de datos personales y la ley de firma electronica

No puede existir una sola entidad certificadora como unica dueña de los datos de identidad por el protocolo x509 como regente absoluto, ya que la ley de datos personales dice explicitamente que entre terceras partes se deben manejar las identidades, esto se llama principio de portabilidad.

La identidad de un ente o una persona, debe ser portable entre entidades de terceras partes por lo cual no puede existir un unico ente certificador con monopolio

Ley moneda criptografica
Firmas Electronicas
1. Permitir aceptar firmas electronicas de blockchain y elevar a que sea similar a la firma
calificada, siguiendo similar legislacion iniciada por la Ley de Medios Electronicos
2. Permitir mas de una autoridad certificadora en el pais, eliminando el monopolio estatal
y abrir el mercado de CAs.
3. Permitir nuevas tecnologias de firmas electronicas no requieran legislacion, y crear un ente
similar a NIST de EE UU que certifica estas tecnologias, y que sea un comite por parte
de UTP, AIG, (otros), civiles expertos que decidan el uso apropiado.
@molekilla
molekilla / ipfs-ipld.ts
Created September 15, 2020 18:24
IPFS Client and IPLD Query
import moment from 'moment';
import {
BlockSchema,
DIDNodeSchema,
DocumentNodeSchema,
EventType,
LogNodeSchema
} from '../storage';
import { DIDDocument } from '../did';
contentscript.js:79 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Db @ contentscript.js:79
(anonymous) @ contentscript.js:73
Y @ contentscript.js:73
(anonymous) @ contentscript.js:90
(anonymous) @ contentscript.js:90
contentScript.js:3092 [Jul 5, 08:11:06 am] [contentScript]: [INFO]: Initialising TronLink
contentScript.js:3092 [Jul 5, 08:11:06 am] [contentScript]: [INFO]: TronLink injected
management:1 Unchecked runtime.lastError: The message port closed before a response was received.
DevTools failed to load SourceMap: Could not load content for chrome-extension://dkdedlpgdmmkkfjabffeganieamfklkm/static/js/content.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
@molekilla
molekilla / gist:c2ab3af0a1236cbbb7a3b51dadfff9fc
Created May 3, 2020 19:44
mdv gas estimates with rlp when creating workflow
·-----------------------------------------------|----------------------------|-------------|----------------------------·
| Solc version: 0.6.6+commit.6c089d02 · Optimizer enabled: false · Runs: 200 · Block limit: 6721975 gas │
················································|····························|·············|·····························
| Methods · 3 gwei/gas · 209.49 usd/eth │
···························|····················|··············|·············|·············|··············|··············
| Contract · Method · Min · Max · Avg · # calls · usd (avg) │
···························|····················|··············|·············|·············|··············|··············
| DV · calc · 49803 · 50076 · 50011 · 14 · 0.03 │
···························|····················
@molekilla
molekilla / gist:d05baf77d9f66a314a86a14a717e86fe
Created May 3, 2020 19:44
mdv gas estimates with rlp when creating workflow
·-----------------------------------------------|----------------------------|-------------|----------------------------·
| Solc version: 0.6.6+commit.6c089d02 · Optimizer enabled: false · Runs: 200 · Block limit: 6721975 gas │
················································|····························|·············|·····························
| Methods · 3 gwei/gas · 209.49 usd/eth │
···························|····················|··············|·············|·············|··············|··············
| Contract · Method · Min · Max · Avg · # calls · usd (avg) │
···························|····················|··············|·············|·············|··············|··············
| DV · calc · 49803 · 50076 · 50011 · 14 · 0.03 │
···························|····················

DV - Digito Verificador

DV API v0.1.0

Autor: Rogelio Morrell C. , 2020

Introduccion

DV es un contrato inteligente que encapsula el algoritmo de digito verificador utilizado por la Direccion General de Ingresos para verificacion de la secuencia de credenciales como RUCs y cedulas.

Contratos

DV

DV contiene dos metodos:

@molekilla
molekilla / onboard.vue
Created April 23, 2020 14:01
onboard.js
//1 ) Instancia Onboard.js
this.onboard = Onboard({
dappId: (Vue as any).appconfig.BLOCKNATIVE_API_KEY,
networkId: this.defaultNetwork,
subscriptions: this.onboardSync,
walletSelect: undefined,
walletCheck: undefined
});
// Si no tiene wallet, muestra una pagina para que instale wallet