Re: [dev-crypto-csharp] PublicKeyFactor.CreateKey argument exception

2013-12-05 Thread Bogdan Suvar
Another exception is EndOfStreamException: {"DEF length 88 object truncated by 2"} with the following stack trace: at Org.BouncyCastle.Asn1.DefiniteLengthInputStream.ToArray() at Org.BouncyCastle.Asn1.Asn1InputStream.BuildObject(Int32 tag, Int32 tagNo, Int32 length) at Org.BouncyCastle.

[dev-crypto-csharp] PublicKeyFactor.CreateKey argument exception

2013-12-05 Thread Bogdan Suvar
Hi, I'm currently trying to create an AsymmetricKeyParameter public key parameter from an xml string like this: public static AsymmetricKeyParameter xmlStringToPubKey(string xmlString) { //AsymmetricCipherKeyPair keyPair; if (String.IsNullOrEmpty(xmlStr

Re: [dev-crypto-csharp] RE: Trouble validating a Bitcoin Signature. Issue with GetEncoded?

2013-12-05 Thread Peter Dettman
Hi Chris, I was able to work out how to get valid results from the test cases you gave (it was a merry chase through the sample code snippets though). I wound up comparing the available C# fragments to the BitcoinJ library (which most of the C# examples appear to be based on), and adding the missin